]> granicus.if.org Git - libevent/log
libevent
12 years agoRevert "Avoid potential SSL read spinlocks"
Nick Mathewson [Tue, 15 Nov 2011 23:34:24 +0000 (18:34 -0500)]
Revert "Avoid potential SSL read spinlocks"

This reverts commit fc52dbac87f4937f8306759506d6a2ad15ca244c.

12 years agoRevert "openssl bufferevent has the same issue with writing as prior commit."
Nick Mathewson [Tue, 15 Nov 2011 23:33:50 +0000 (18:33 -0500)]
Revert "openssl bufferevent has the same issue with writing as prior commit."

This reverts commit 7353663eb7c0b2a1caaaa5acd818515f156cf2ca.

12 years agoAdd new entries to changelog, new credits to README
Nick Mathewson [Tue, 15 Nov 2011 22:22:12 +0000 (17:22 -0500)]
Add new entries to changelog, new credits to README

12 years agoFix DNS memleak checks when running with malloc-replacement/debugging disabled
Nick Mathewson [Tue, 15 Nov 2011 22:11:42 +0000 (17:11 -0500)]
Fix DNS memleak checks when running with malloc-replacement/debugging disabled

12 years agoDon't try to make notifiable event_base when no threading fns are configured
Nick Mathewson [Mon, 14 Nov 2011 22:33:02 +0000 (17:33 -0500)]
Don't try to make notifiable event_base when no threading fns are configured

12 years agoWarn when unable to construct base because of failing make_base_notifiable
Nick Mathewson [Mon, 14 Nov 2011 22:32:22 +0000 (17:32 -0500)]
Warn when unable to construct base because of failing make_base_notifiable

12 years agoopenssl bufferevent has the same issue with writing as prior commit.
Mark Ellzey [Mon, 14 Nov 2011 15:57:15 +0000 (10:57 -0500)]
openssl bufferevent has the same issue with writing as prior commit.

12 years agoAvoid potential SSL read spinlocks
Mark Ellzey [Mon, 14 Nov 2011 15:24:07 +0000 (10:24 -0500)]
Avoid potential SSL read spinlocks

OpenSSL bufferevents with deferred callbacks enabled under high load will
spinlock in the function consider_reading(). This loop continues until all
data has been read.

Because of this condition; openssl bufferevents will never return back into
event_base_loop() until SSL_read has determined data is no longer ready.

As of yet I have not found a reason why this while loop exists, so this patch
just swaps out while for if.

If needed I can write same code which would trigger this effect; optionally
libevhtp has a test.c program which can be run with the following flags:

./test -s <keyfile.pem>

curl -vvvv -k -d@<HUGE_ASS_FILE> https://127.0.0.1:8081/

The return data will include the number of times the readcb got data and the
length of that read.

Without this patch, you are likely to see a small amount of "bytes read....",
otherwise the "bytes read..." return data should show much more reasonable
numbers.

12 years agoImprove win32 behavior of dns-sample.c codex
Gisle Vanem [Wed, 9 Nov 2011 05:17:56 +0000 (00:17 -0500)]
Improve win32 behavior of dns-sample.c codex

12 years agoFix typo in whatsnew-2.0.txt
Mansour Moufid [Thu, 3 Nov 2011 15:43:49 +0000 (11:43 -0400)]
Fix typo in whatsnew-2.0.txt

12 years agoFix an evbuffer crash in evbuffer_remove_buffer()
Nick Mathewson [Wed, 2 Nov 2011 20:09:15 +0000 (16:09 -0400)]
Fix an evbuffer crash in evbuffer_remove_buffer()

Found by Greg Hazel.

12 years agoimprove test to remove at least one buffer from src
Greg Hazel [Wed, 2 Nov 2011 22:19:05 +0000 (15:19 -0700)]
improve test to remove at least one buffer from src

12 years agounit test for remove_buffer bug
Greg Hazel [Tue, 1 Nov 2011 20:44:40 +0000 (13:44 -0700)]
unit test for remove_buffer bug

12 years agoFix compile warning from saying event2/*.h inside a comment
Nick Mathewson [Mon, 31 Oct 2011 02:32:18 +0000 (22:32 -0400)]
Fix compile warning from saying event2/*.h inside a comment

Based on a patch by Adrian Chadd

12 years agoepoll: close fd on alloc fail at initialization
Jamie Iles [Wed, 26 Oct 2011 12:24:30 +0000 (13:24 +0100)]
epoll: close fd on alloc fail at initialization

If the memory allocations fail then we free any other allocated
structures but don't close the file descriptor resulting in an leak of
fd's.

13 years agoUpdate copyright dates to 2011.
Nick Mathewson [Mon, 24 Oct 2011 17:18:09 +0000 (13:18 -0400)]
Update copyright dates to 2011.

13 years agoAdd note about evhttp_send_reply_end to its doxygen
Nick Mathewson [Thu, 20 Oct 2011 02:59:47 +0000 (22:59 -0400)]
Add note about evhttp_send_reply_end to its doxygen

13 years agoMore detailed message in case of libevent self-debugging failure.
Leonid Evdokimov [Wed, 19 Oct 2011 13:44:17 +0000 (17:44 +0400)]
More detailed message in case of libevent self-debugging failure.

13 years agoStyle and comment tweaks for dns/leak* tests
Nick Mathewson [Thu, 20 Oct 2011 02:41:11 +0000 (22:41 -0400)]
Style and comment tweaks for dns/leak* tests

13 years agoTest for commit aff6ba1
Leonid Evdokimov [Tue, 18 Oct 2011 13:49:40 +0000 (17:49 +0400)]
Test for commit aff6ba1

13 years agoEmpty DNS reply with OK status is another way to say NODATA.
Leonid Evdokimov [Wed, 19 Oct 2011 18:38:37 +0000 (22:38 +0400)]
Empty DNS reply with OK status is another way to say NODATA.

Sometimes DNS reply has nothing but query section. It does not look like
error, so it should be treated as NODATA with TTL=0 as soon as there is
no SOA record to deduce negative TTL from.

13 years agoTests for 94fba5b and f72e8f6
Leonid Evdokimov [Wed, 19 Oct 2011 18:36:12 +0000 (22:36 +0400)]
Tests for 94fba5b and f72e8f6

13 years agoBump version to 2.0.15-stable-dev
Nick Mathewson [Wed, 12 Oct 2011 05:00:23 +0000 (01:00 -0400)]
Bump version to 2.0.15-stable-dev

13 years agoCredit a patch from a one-named user release-2.0.15-stable
Nick Mathewson [Wed, 12 Oct 2011 04:39:22 +0000 (00:39 -0400)]
Credit a patch from a one-named user

13 years agoIncrement version to 2.0.15-stable
Nick Mathewson [Wed, 12 Oct 2011 04:22:17 +0000 (00:22 -0400)]
Increment version to 2.0.15-stable

13 years agoAdd changelog for 2.0.15-stable
Nick Mathewson [Wed, 12 Oct 2011 04:16:12 +0000 (00:16 -0400)]
Add changelog for 2.0.15-stable

13 years agorefer to non-deprecated evdns functions in comments
Greg Hazel [Mon, 10 Oct 2011 15:24:43 +0000 (08:24 -0700)]
refer to non-deprecated evdns functions in comments

13 years agoMerge remote-tracking branch 'github/20_addfile_ssl' into patches-2.0
Nick Mathewson [Thu, 6 Oct 2011 19:11:50 +0000 (15:11 -0400)]
Merge remote-tracking branch 'github/20_addfile_ssl' into patches-2.0

13 years agoFix some "value never used" warnings with gcc 4.6.1
Nick Mathewson [Mon, 3 Oct 2011 16:49:02 +0000 (12:49 -0400)]
Fix some "value never used" warnings with gcc 4.6.1

13 years agoMake write-checking fixes use tt_fail_perror
Nick Mathewson [Mon, 3 Oct 2011 16:45:36 +0000 (12:45 -0400)]
Make write-checking fixes use tt_fail_perror

13 years agoFixed compiler warnings for unchecked read/write calls.
Mark Ellzey [Tue, 12 Jul 2011 17:05:36 +0000 (13:05 -0400)]
Fixed compiler warnings for unchecked read/write calls.

13 years agoPrefer mmap to sendfile unless a DRAINS_TO_FD flag is set. Allows add_file to work...
Nick Mathewson [Thu, 29 Sep 2011 13:30:04 +0000 (09:30 -0400)]
Prefer mmap to sendfile unless a DRAINS_TO_FD flag is set. Allows add_file to work with SSL.

The sendfile() implementation for evbuffer_add_file is potentially more
efficient, but it has a problem: you can only use it to send bytes over
a socket using sendfile().  If you are writing bytes via SSL_send() or
via a filter, or if you need to be able to inspect your buffer, it
doesn't work.

As an easy fix, this patch disables the sendfile-based implementation of
evbuffer_add_file on an evbuffer unless the user sets a new
EVBUFFER_FLAG_DRAINS_TO_FD flag on that evbuffer, indicating that the
evbuffer will not be inspected, but only written out via
evbuffer_write(), evbuffer_write_atmost(), or drained with stuff like
evbuffer_drain() or evbuffer_add_buffer().  This flag is off by
default, except for evbuffers used for output on bufferevent_socket.

In the future, it could be interesting to make a best-effort file
segment implementation that tries to send via sendfile, but mmaps on
demand.  That's too much complexity for a stable release series, though.

13 years agoMake evbuffer callbacks get the right n_added value after evbuffer_add
Nick Mathewson [Wed, 28 Sep 2011 13:22:17 +0000 (09:22 -0400)]
Make evbuffer callbacks get the right n_added value after evbuffer_add

Patch from Alex.

13 years agoMerge branch '20_loopbreak_in_signal' into patches-2.0
Nick Mathewson [Mon, 26 Sep 2011 15:07:58 +0000 (11:07 -0400)]
Merge branch '20_loopbreak_in_signal' into patches-2.0

13 years agoUse _SOURCES, not _sources, in sample/Makefile.am
Nick Mathewson [Sun, 25 Sep 2011 11:39:00 +0000 (07:39 -0400)]
Use _SOURCES, not _sources, in sample/Makefile.am

Found by Adrian Chadd

13 years agole-proxy and regress depend on openssl directly
Sergey Avseyev [Thu, 15 Sep 2011 10:06:38 +0000 (13:06 +0300)]
le-proxy and regress depend on openssl directly

13 years agoAdd DNS_ERR_NODATA error code to handle empty replies.
Leonid Evdokimov [Wed, 10 Aug 2011 11:58:47 +0000 (15:58 +0400)]
Add DNS_ERR_NODATA error code to handle empty replies.

13 years agoFix docstring in dns.h
Leonid Evdokimov [Wed, 10 Aug 2011 11:58:19 +0000 (15:58 +0400)]
Fix docstring in dns.h

13 years agoWhen a signal callback is activated to run multiple times, allow event_base_loopbreak...
Nick Mathewson [Sat, 10 Sep 2011 00:53:30 +0000 (20:53 -0400)]
When a signal callback is activated to run multiple times, allow event_base_loopbreak to work even before they all have run.

Found by Abilio Marques.

13 years agoDNS: add ttl for negative answers using RFC 2308 idea.
Leonid Evdokimov [Tue, 30 Aug 2011 20:56:45 +0000 (00:56 +0400)]
DNS: add ttl for negative answers using RFC 2308 idea.

13 years agoIncrement version to 2.0.14-stable-dev
Nick Mathewson [Wed, 31 Aug 2011 15:25:11 +0000 (11:25 -0400)]
Increment version to 2.0.14-stable-dev

13 years agoCredit new contributors for 2.0.14-stable release-2.0.14-stable
Nick Mathewson [Wed, 31 Aug 2011 04:23:20 +0000 (00:23 -0400)]
Credit new contributors for 2.0.14-stable

13 years agoPick a release date for the changelog
Nick Mathewson [Wed, 31 Aug 2011 02:35:51 +0000 (22:35 -0400)]
Pick a release date for the changelog

13 years agoBump version to 2.0.14-stable
Nick Mathewson [Wed, 31 Aug 2011 02:28:02 +0000 (22:28 -0400)]
Bump version to 2.0.14-stable

13 years agoclear read watermark on underlying bufferevent when creating filtering bev to fix...
Joachim Bauch [Mon, 29 Aug 2011 21:39:26 +0000 (23:39 +0200)]
clear read watermark on underlying bufferevent when creating filtering bev to fix potentially failing fragmented ssl handshakes

13 years agoCheckpoint changelog entries for 2.0.14-stable
Nick Mathewson [Mon, 29 Aug 2011 17:40:03 +0000 (13:40 -0400)]
Checkpoint changelog entries for 2.0.14-stable

13 years agoCorrectly terminate IO on an async bufferevent on bufferevent_free
Nick Mathewson [Thu, 25 Aug 2011 01:39:28 +0000 (21:39 -0400)]
Correctly terminate IO on an async bufferevent on bufferevent_free

13 years agoHave test-ratelim.c support IOCP
Nick Mathewson [Wed, 24 Aug 2011 22:42:12 +0000 (18:42 -0400)]
Have test-ratelim.c support IOCP

13 years agoMake IOCP rate-limiting group support stricter and less surprising.
Nick Mathewson [Wed, 24 Aug 2011 22:41:35 +0000 (18:41 -0400)]
Make IOCP rate-limiting group support stricter and less surprising.

Previously, we wouldn't decrement read/write buckets because of IOCP
reads and writes until those reads and writes were complete.  That's
not so bad on the per-connection front.  But for group limits, the
old approach makes us launch a huge amount of reads and writes
whenever the group limit becomes positive, and then decrement the
limit to a hugely negative number as they complete.

With this patch, we decrement our read buckets whenever we launch an
IOCP read or write, based on the maximum that tried to read or
write.  Later, when the operations finish, we re-increment the
bucket based on the portion of the request that couldn't finish.

13 years agoSupport negative arguments to _bufferevent_decrement_(read/write)_buckets()
Nick Mathewson [Wed, 24 Aug 2011 22:42:00 +0000 (18:42 -0400)]
Support negative arguments to _bufferevent_decrement_(read/write)_buckets()

13 years agoCleanup on 7c11e51e1ab: fix strtol usage
Nick Mathewson [Sun, 28 Aug 2011 18:03:10 +0000 (14:03 -0400)]
Cleanup on 7c11e51e1ab: fix strtol usage

13 years agoCleanup on 7c11e51e1ab: restore c90 declaration compliance
Nick Mathewson [Sun, 28 Aug 2011 18:02:40 +0000 (14:02 -0400)]
Cleanup on 7c11e51e1ab: restore c90 declaration compliance

13 years agoClean up some problems identified by Coverity.
Harlan Stenn [Sat, 27 Aug 2011 09:48:11 +0000 (05:48 -0400)]
Clean up some problems identified by Coverity.

13 years agoMake rate limiting work with common_timeout logic
Nick Mathewson [Wed, 24 Aug 2011 20:17:05 +0000 (16:17 -0400)]
Make rate limiting work with common_timeout logic

13 years agoMerge branch '20_iocp_fixes' into patches-2.0
Nick Mathewson [Thu, 18 Aug 2011 19:09:44 +0000 (15:09 -0400)]
Merge branch '20_iocp_fixes' into patches-2.0

13 years agoMake overlapped reads result in evbuffer callbacks getting invoked
Nick Mathewson [Thu, 18 Aug 2011 16:35:27 +0000 (12:35 -0400)]
Make overlapped reads result in evbuffer callbacks getting invoked

13 years agoIOCP: don't launch reads or writes on an unconnected socket
Nick Mathewson [Thu, 18 Aug 2011 15:41:55 +0000 (11:41 -0400)]
IOCP: don't launch reads or writes on an unconnected socket

13 years agoTry to fix 'make distcheck' errors when building out-of-tree
Dave Hart [Mon, 15 Aug 2011 18:40:32 +0000 (14:40 -0400)]
Try to fix 'make distcheck' errors when building out-of-tree

13 years agoMerge branch '20_low_ratelim' into patches-2.0
Nick Mathewson [Thu, 18 Aug 2011 01:47:19 +0000 (21:47 -0400)]
Merge branch '20_low_ratelim' into patches-2.0

13 years agoSolaris sendfile: correctly detect amount of data sent
Michael Herf [Mon, 15 Aug 2011 17:39:10 +0000 (13:39 -0400)]
Solaris sendfile: correctly detect amount of data sent

Original message:

   Solaris sendfile seems to fail when sending moderately large (<1GB)
   files. Not a 32/64 problem, but a buffer problem.

   Anyone else ever try this? It is definitely broken in http-server.c.

   It seems to be broken in the following way:

   When sendfile sends partial data (EAGAIN, would block), "res" is
   always -1, rather than the amount sent.

   Here's a patch that reads from the "offset" pointer instead to
   discover what was sent. This seems to work:

13 years agoFix request_finished memory leak with debugging turned on.
Leonid Evdokimov [Wed, 10 Aug 2011 23:24:06 +0000 (03:24 +0400)]
Fix request_finished memory leak with debugging turned on.

13 years agoFix evsig_dealloc memory leak with debugging turned on.
Leonid Evdokimov [Wed, 10 Aug 2011 23:10:08 +0000 (03:10 +0400)]
Fix evsig_dealloc memory leak with debugging turned on.

13 years agoAnother docstring fix.
Leonid Evdokimov [Wed, 10 Aug 2011 23:06:07 +0000 (03:06 +0400)]
Another docstring fix.

13 years agoFix handling of group rate limits under 64 bytes of burst
Nick Mathewson [Thu, 11 Aug 2011 19:15:17 +0000 (15:15 -0400)]
Fix handling of group rate limits under 64 bytes of burst

The "min_share" logic, which was designed to prevent piles of
extremely small writes when running up against a group rate limit,
could lead to confusing behavior if you ever set a min_share less
than your burst rate.  If that happened, then as soon as your group
rate limit was exhausted, you'd stop reading/writing, and never
start again, since the amount readable/writeable would never
actually hit min_share.

We now cap min_share at the rate per tick.

Found by George Kadianakis

13 years agoIgnore deprecation warnings on OS X
Sebastian Hahn [Wed, 10 Aug 2011 17:11:55 +0000 (19:11 +0200)]
Ignore deprecation warnings on OS X

Starting with Lion, Apple decided to deprecate the system openssl. We
can start requiring users to install their own openssl once OS X doesn't
ship with it anymore.

13 years agoAllow OS-neutral builds for platforms where some versions have arc4random_buf
Mitchell Livingston [Mon, 8 Aug 2011 21:06:46 +0000 (17:06 -0400)]
Allow OS-neutral builds for platforms where some versions have arc4random_buf

13 years agoPropagate errors on the underlying bufferevent to the user.
Joachim Bauch [Tue, 26 Jul 2011 08:31:18 +0000 (10:31 +0200)]
Propagate errors on the underlying bufferevent to the user.

13 years agoFix typo in event_compat.h comments.
Nick Mathewson [Mon, 1 Aug 2011 14:27:56 +0000 (10:27 -0400)]
Fix typo in event_compat.h comments.

13 years agoBump version to 2.0.13-stable-dev
Nick Mathewson [Tue, 19 Jul 2011 03:37:59 +0000 (23:37 -0400)]
Bump version to 2.0.13-stable-dev

13 years agoBump version to 2.0.13-dev release-2.0.13-stable
Nick Mathewson [Mon, 18 Jul 2011 22:19:25 +0000 (18:19 -0400)]
Bump version to 2.0.13-dev

13 years agoacks and changelog for 2.0.13-stable
Nick Mathewson [Mon, 18 Jul 2011 21:05:20 +0000 (17:05 -0400)]
acks and changelog for 2.0.13-stable

13 years agoGive Makefile.am echo a non-null argument. msys likes this
Nick Mathewson [Mon, 18 Jul 2011 16:45:50 +0000 (12:45 -0400)]
Give Makefile.am echo a non-null argument. msys likes this

13 years agoFix a warning in evutil_rand when building with threads disabled
Nick Mathewson [Mon, 18 Jul 2011 01:48:38 +0000 (21:48 -0400)]
Fix a warning in evutil_rand when building with threads disabled

13 years agoUse AM_CPPFLAGS in sample/Makefile.am, not AM_CFLAGS
Nick Mathewson [Fri, 15 Jul 2011 14:20:01 +0000 (10:20 -0400)]
Use AM_CPPFLAGS in sample/Makefile.am, not AM_CFLAGS

Reported by Dagobert Michelsen.

13 years agoAdd doxygen to .gitignore
Nick Mathewson [Tue, 5 Jul 2011 18:57:08 +0000 (14:57 -0400)]
Add doxygen to .gitignore

13 years agoFix up test_evutil_snprintf
Nick Mathewson [Tue, 5 Jul 2011 18:55:09 +0000 (14:55 -0400)]
Fix up test_evutil_snprintf

13 years agoMerge remote-tracking branch 'github/20_size_fmt' into patches-2.0
Nick Mathewson [Tue, 5 Jul 2011 18:51:24 +0000 (14:51 -0400)]
Merge remote-tracking branch 'github/20_size_fmt' into patches-2.0

13 years agoMerge branch 'doxygen' into patches-2.0
Nick Mathewson [Tue, 5 Jul 2011 17:04:30 +0000 (13:04 -0400)]
Merge branch 'doxygen' into patches-2.0

13 years agoUpdate Doxyfile to produce more useful output
Nick Mathewson [Tue, 5 Jul 2011 03:14:19 +0000 (23:14 -0400)]
Update Doxyfile to produce more useful output

13 years agoRevise the event/evbuffer/bufferevent doxygen for clarity and accuracy
Nick Mathewson [Tue, 5 Jul 2011 03:02:11 +0000 (23:02 -0400)]
Revise the event/evbuffer/bufferevent doxygen for clarity and accuracy

13 years agoFix select.c compilation on systems with no NFDBITS
Nick Mathewson [Tue, 5 Jul 2011 04:11:59 +0000 (00:11 -0400)]
Fix select.c compilation on systems with no NFDBITS

13 years agoMerge remote-tracking branch 'github/20_global_locks_init' into patches-2.0
Nick Mathewson [Mon, 4 Jul 2011 16:16:08 +0000 (12:16 -0400)]
Merge remote-tracking branch 'github/20_global_locks_init' into patches-2.0

13 years agoSpeed up invoke_callbacks on evbuffers when there are no callbacks
Mark Ellzey [Mon, 4 Jul 2011 15:47:24 +0000 (11:47 -0400)]
Speed up invoke_callbacks on evbuffers when there are no callbacks

This fixes a performance regression against 1.4

13 years agoFix bug in SSL bufferevents backed by a bev with a write high-watermarks
Joachim Bauch [Mon, 4 Jul 2011 15:36:14 +0000 (11:36 -0400)]
Fix bug in SSL bufferevents backed by a bev with a write high-watermarks

Original mail:

   the logic that handles write watermarks in "bio_bufferevent_write"
   is not working. It currently doesn't write any data if the high
   watermark is *above* the amount of data to write (i.e. when there
   is actually enough room available).

13 years agoFix a few warnings on OpenBSD
Nicholas Marriott [Sun, 3 Jul 2011 01:49:07 +0000 (21:49 -0400)]
Fix a few warnings on OpenBSD

- redeclaration of dst_size

- arpa/inet.h requires netinet/in.h first

- don't use a local with the same name as a global - it isn't needed so
  remove it

13 years agoFix AIX build issue with TAILQ_FOREACH definition
Nick Mathewson [Wed, 22 Jun 2011 15:22:35 +0000 (11:22 -0400)]
Fix AIX build issue with TAILQ_FOREACH definition

Reported by Lawnstein Chan.

13 years agoDon't install event_rpcgen.py when --disable-libevent-install is used
Harlan Stenn [Tue, 21 Jun 2011 14:05:28 +0000 (10:05 -0400)]
Don't install event_rpcgen.py when --disable-libevent-install is used

13 years agoMerge branch '20_kqueue_badf' into patches-2.0
Nick Mathewson [Thu, 16 Jun 2011 17:19:43 +0000 (13:19 -0400)]
Merge branch '20_kqueue_badf' into patches-2.0

13 years agoDon't break when building tests from git without python installed
Nick Mathewson [Tue, 14 Jun 2011 18:37:49 +0000 (14:37 -0400)]
Don't break when building tests from git without python installed

13 years agoSimplify windows commandname logic in tinytest
Nick Mathewson [Sat, 11 Jun 2011 05:26:54 +0000 (01:26 -0400)]
Simplify windows commandname logic in tinytest

Instead of using a dup'd pointer, let's use a static array, so we
don't need to free it.  This patch also makes tinytest build on
non-windows again.

13 years agoFix tinytest invocation from windows shell
Ed Day [Sat, 11 Jun 2011 04:49:24 +0000 (00:49 -0400)]
Fix tinytest invocation from windows shell

Original post:

  This post is in response to a posting last December on a Windows
  regression fork failure ([Libevent-users] Re: Libevent 2.0.10-stable
  is released by Dongsheng Song).  I noticed the question was not
  answered and I recently experienced the same error myself when
  trying to run the Windows regression tests myself.

  I checked the return status from the CreateProcess call and found it
  was "file not found".  This led me to look at the command-line I was
  using which was .\regress in a Visual Studio 2008 command prompt
  window.  Windows could not find the file because it did not have the
  .exe extension on the end.  The code that builds the command should
  be modified to ensure the extension is present.

13 years agoUse the correct printf args when formatting size_t
Nick Mathewson [Wed, 8 Jun 2011 21:18:03 +0000 (17:18 -0400)]
Use the correct printf args when formatting size_t

Based on a patch from Mansour Moufid

13 years agoCheck if the `evhttp_new_object' function in `http.c' returns NULL.
Mansour Moufid [Fri, 27 May 2011 22:40:31 +0000 (18:40 -0400)]
Check if the `evhttp_new_object' function in `http.c' returns NULL.

13 years agoReport kqueue ebadf, epipe, and eperm as EV_READ events
Nick Mathewson [Wed, 8 Jun 2011 18:56:19 +0000 (14:56 -0400)]
Report kqueue ebadf, epipe, and eperm as EV_READ events

When asked to add one side of a pipe, and the other side has been
closed, kqueue on NetBSD will say EBADF; kqueue on FreeBSD will say
EPIPE, and kqueue on OpenBSD will say EPERM.  So treat all of these
as EV_READ events, to give the user an opportunity to notice that
the pipe is closed.

Diagnosed by Nicholas Marriott and Dale Rahn; based on a patch by
Nicholas Marriott.

13 years agoReplace an assertion for event_base_free(NULL) with a check-and-warn
Nick Mathewson [Wed, 8 Jun 2011 18:24:45 +0000 (14:24 -0400)]
Replace an assertion for event_base_free(NULL) with a check-and-warn

event_base_free(NULL) means "free the current event base".
Previously, it would assert if there was no 'current' base.  Now it
just warns and returns.

Reported by Gilad Benjamini

13 years agoAdd some missing checks for mm_calloc failures
Nick Mathewson [Wed, 8 Jun 2011 18:18:41 +0000 (14:18 -0400)]
Add some missing checks for mm_calloc failures

Found by Gilad Benjamini

13 years agoFix incorrect results from evbuffer_search_eol(EOL_LF)
Nick Mathewson [Mon, 6 Jun 2011 19:11:28 +0000 (15:11 -0400)]
Fix incorrect results from evbuffer_search_eol(EOL_LF)

Our evbuffer_strchr() function [which was only used for
search_eol(EOL_LF) could give incorrect results if it found its answer
in the first chunk but didn't start searching from the front of the
chunk.

Also, this patch adds unit tests for evbuffer_search_eol, particularly
in those cases that evbuffer_readln() tests didn't exercise.

13 years agoBump version to 2.0.12-stable-dev
Nick Mathewson [Sun, 5 Jun 2011 01:36:34 +0000 (21:36 -0400)]
Bump version to 2.0.12-stable-dev

13 years agoMerge branch 'patches-2.0' of ssh://levent.git.sourceforge.net/gitroot/levent/libeven...
Nick Mathewson [Sun, 5 Jun 2011 01:12:53 +0000 (21:12 -0400)]
Merge branch 'patches-2.0' of ssh://levent.git.sourceforge.net/gitroot/levent/libevent into patches-2.0

13 years agotweak date on changelog
Nick Mathewson [Sun, 5 Jun 2011 01:11:09 +0000 (21:11 -0400)]
tweak date on changelog