]> granicus.if.org Git - libevent/log
libevent
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

13 years agoMerge branch 'patches-2.0' of ssh://levent.git.sourceforge.net/gitroot/levent/libeven...
Nick Mathewson [Sat, 4 Jun 2011 14:34:14 +0000 (10:34 -0400)]
Merge branch 'patches-2.0' of ssh://levent.git.sourceforge.net/gitroot/levent/libevent into patches-2.0

13 years agoChangelog and new credits for 2.0.12-stable release-2.0.12-stable
Nick Mathewson [Fri, 3 Jun 2011 21:08:30 +0000 (17:08 -0400)]
Changelog and new credits for 2.0.12-stable

13 years agoBump version to 2.0.12-stable. Not release just yet
Nick Mathewson [Fri, 3 Jun 2011 21:08:14 +0000 (17:08 -0400)]
Bump version to 2.0.12-stable.  Not release just yet

13 years agoFix regress_ssl.c build on openbsd
Nick Mathewson [Fri, 3 Jun 2011 21:06:17 +0000 (17:06 -0400)]
Fix regress_ssl.c build on openbsd

13 years agoAvoid a segfault when all methods are disabled or broken
Nick Mathewson [Wed, 1 Jun 2011 21:27:28 +0000 (17:27 -0400)]
Avoid a segfault when all methods are disabled or broken

13 years agocygwin: make it possible to build DLLs
Nick Mathewson [Wed, 1 Jun 2011 17:48:02 +0000 (13:48 -0400)]
cygwin: make it possible to build DLLs

Patch from Brian Koehmstedt

13 years agoMerge branch '20_select_nfds' into patches-2.0
Nick Mathewson [Mon, 30 May 2011 16:06:36 +0000 (12:06 -0400)]
Merge branch '20_select_nfds' into patches-2.0

13 years agoFix a fencepost bug in the select backend
Nick Mathewson [Mon, 30 May 2011 15:53:19 +0000 (11:53 -0400)]
Fix a fencepost bug in the select backend

This bug would sometimes lead us to looking one bit off the end of
the fdset arrays, and trying to activate a (nonexistent) event if
that bit was set.

Found by Harlann Stenn.  Fixes a test failure on OpenSolaris.

13 years agoMake the new http_connect_fail_test use a multicast addr, not broadcast
Nick Mathewson [Sat, 28 May 2011 03:28:17 +0000 (23:28 -0400)]
Make the new http_connect_fail_test use a multicast addr, not broadcast

Turns out that FreeBSD does _not_ give a ENETUNREACH error when
told to make a TCP socket to 255.255.255.255, but it is quite happy
to do so for 239.10.20.30.  So that's what we'll do.

Found by Robert Ransom and Dave Hart.

13 years agoInitializeCriticalSectionAndSpinCount requires _WIN32_WINNT >= 0x0403.
Peter Rosin [Thu, 26 May 2011 08:10:57 +0000 (10:10 +0200)]
InitializeCriticalSectionAndSpinCount requires _WIN32_WINNT >= 0x0403.

13 years agoFix a couple of signed/unsigned warnings in http.c
Nick Mathewson [Fri, 27 May 2011 19:08:25 +0000 (15:08 -0400)]
Fix a couple of signed/unsigned warnings in http.c

13 years agoDisable main/many_events_slow_add with evport backend
Nick Mathewson [Fri, 27 May 2011 18:57:55 +0000 (14:57 -0400)]
Disable main/many_events_slow_add with evport backend

In 2.0 and earlier, evport only reports up to 8 events at a time, which
confuses this test badly.

13 years agoFix compilation.
Nick Mathewson [Thu, 26 May 2011 21:43:17 +0000 (17:43 -0400)]
Fix compilation.

13 years agoMerge branch 'intcmp_overflow_fixes' into patches-2.0
Nick Mathewson [Thu, 26 May 2011 21:34:15 +0000 (17:34 -0400)]
Merge branch 'intcmp_overflow_fixes' into patches-2.0

13 years agoupdated EV_S(s)IZE definitions
Mark Ellzey [Wed, 25 May 2011 22:52:07 +0000 (18:52 -0400)]
updated EV_S(s)IZE definitions

13 years agoAdded overflow checks in evhttp_read_body and evhttp_get_body
Mark Ellzey [Wed, 25 May 2011 18:31:09 +0000 (14:31 -0400)]
Added overflow checks in evhttp_read_body and evhttp_get_body

13 years agoAdded several checks for under/overflow conditions in evhttp_handle_chunked_read
Mark Ellzey [Wed, 25 May 2011 16:58:59 +0000 (12:58 -0400)]
Added several checks for under/overflow conditions in evhttp_handle_chunked_read

13 years agoAlways use evutil_snprintf, even if OS provides it
Sebastian Hahn [Thu, 26 May 2011 00:05:54 +0000 (02:05 +0200)]
Always use evutil_snprintf, even if OS provides it

In test/tinytest_local.h we can't redefine snprintf if the OS has it
defined already.

13 years agoUse evutil_gettimeofday instead of relying on the system gettimeofday.
Peter Rosin [Wed, 25 May 2011 13:11:01 +0000 (15:11 +0200)]
Use evutil_gettimeofday instead of relying on the system gettimeofday.

13 years agoFix winsock2.h #include issues with MSVC
Peter Rosin [Wed, 25 May 2011 09:04:43 +0000 (11:04 +0200)]
Fix winsock2.h #include issues with MSVC

Define WIN32_LEAN_AND_MEAN, so that windows.h does not bring in
winsock.h which in turn makes it impossible to #include <winsock2.h>
(at least with MSVC)

13 years agoMake sure TINYTEST_LOCAL is defined when building tinytest.c
Peter Rosin [Wed, 25 May 2011 22:03:38 +0000 (00:03 +0200)]
Make sure TINYTEST_LOCAL is defined when building tinytest.c

13 years agounistd.h and sys/time.h might not exist.
Peter Rosin [Wed, 25 May 2011 08:58:48 +0000 (10:58 +0200)]
unistd.h and sys/time.h might not exist.

13 years agoMSVC does not provide S_ISDIR, so provide it manually.
Peter Rosin [Wed, 25 May 2011 08:57:16 +0000 (10:57 +0200)]
MSVC does not provide S_ISDIR, so provide it manually.

13 years agoBring in the compile script from automake, if needed.
Peter Rosin [Wed, 25 May 2011 08:56:32 +0000 (10:56 +0200)]
Bring in the compile script from automake, if needed.

13 years agoMake the tests build when OpenSSL is not available.
Peter Rosin [Wed, 25 May 2011 08:55:41 +0000 (10:55 +0200)]
Make the tests build when OpenSSL is not available.

Don't #define HAVE_OPENSSL (to zero) when OpenSSL is not available.
Code written as #ifdef HAVE_OPENSSL do not expect that.

13 years agoLink with -lshell32 and -ladvapi32 on Win32.
Peter Rosin [Wed, 25 May 2011 08:54:06 +0000 (10:54 +0200)]
Link with -lshell32 and -ladvapi32 on Win32.

SHGetSpecialFolderPath is in Shell32.dll and the RegOpenKey (et al) and
CryptGenRandom (et al) functions are in -ladvapi32.dll. MinGW is "nice"
and brings those in automatically, but specify them explicitly for
other tool chains.

13 years agoFix new warnings from GCC 4.6
Nick Mathewson [Wed, 25 May 2011 20:51:25 +0000 (16:51 -0400)]
Fix new warnings from GCC 4.6

13 years agoPrevent size_t overflow in evhttp_htmlescape.
Mansour Moufid [Mon, 23 May 2011 22:01:24 +0000 (18:01 -0400)]
Prevent size_t overflow in evhttp_htmlescape.

Modified the `html_replace' function so that it returns the length of
the replacement string instead of the string itself. This is used to
easily check for overflows of the `new_size' variable in the first for
loop of the `evhttp_htmlescape' function, and thus potential out of
bounds writes in the second for loop (if an overflow occurs in
new_size, then new_size < old_size). Also check that new_size + 1
doesn't overflow in mm_malloc(new_size + 1).

Removed the `scratch_space' variable from the `evhttp_htmlescape'
function since it wasn't actually used; also removed the `buf'
variable from the `evhttp_htmlescape' function since it was only used
by `scratch_space'.

13 years agoFix a bug that prevented us from configuring IPv6 nameservers.
Nick Mathewson [Mon, 23 May 2011 21:45:14 +0000 (17:45 -0400)]
Fix a bug that prevented us from configuring IPv6 nameservers.

13 years agoTest case for 0848814ac49616
Kevin Ko [Mon, 23 May 2011 05:40:05 +0000 (01:40 -0400)]
Test case for 0848814ac49616

 "I'm not sure if you'll like my use of the limited broadcast address
  for simulating an ENETUNREACH error with a TCP connection, but it's
  the best that I could think of.  Basically, we want to trigger a
  non-EINPROGRESS error in evutil_socket_connect() immediately at the
  connect() in order to bring about the assertion in the
  evhttp_connection_fail() error handling code."

13 years agoFix failing assertion introducd in commit 0d6622e
Kevin Ko [Sat, 21 May 2011 03:23:44 +0000 (23:23 -0400)]
Fix failing assertion introducd in commit 0d6622e

Patch in question:
 - Fix the case when failed evhttp_make_request() leaved request in the queue.
 - http://levent.git.sourceforge.net/git/gitweb.cgi?p=levent/libevent;a=commit;h=0d6622e

The above patch introduces a failing assertion in
evhttp_connection_fail().  This happens because the patch defers the
assignment of the outstanding request to the evcon->requests list,
while evhttp_connection_fail() assumes that the request lies in the
list.

One scenario in which this can happen is when the request list is
empty and a connection is made to an unreachable host.  The assertion
will then fail after bufferevent_socket_connect() errors out (with
ENETUNREACH in my case).

13 years agoFix compilation with GCC 2, which had no __builtin_expect
Dave Hart [Fri, 20 May 2011 18:18:08 +0000 (14:18 -0400)]
Fix compilation with GCC 2, which had no __builtin_expect

13 years agoFix a compile warning with zlib 1.2.4 and 1.2.5
Sebastian Hahn [Thu, 5 May 2011 16:02:42 +0000 (18:02 +0200)]
Fix a compile warning with zlib 1.2.4 and 1.2.5

I took this fix from Tor (commit 1a52e39c22d5, author Nick Mathewson,
Copyright (c) 2007-2011, The Tor Project, Inc.) and adapted it slightly
for libevent.

13 years agoCorrectly detect openssl on windows
Sebastian Hahn [Thu, 5 May 2011 14:27:55 +0000 (16:27 +0200)]
Correctly detect openssl on windows

13 years agoMove the win32 detection in configure.in
Sebastian Hahn [Thu, 5 May 2011 13:51:11 +0000 (15:51 +0200)]
Move the win32 detection in configure.in

13 years agoUse OPENSSL_LIBS in Makefile.am
Sebastian Hahn [Thu, 5 May 2011 13:49:38 +0000 (15:49 +0200)]
Use OPENSSL_LIBS in Makefile.am

13 years agoLibtool brings in the dependencies of libevent_openssl.la automatically
Peter Rosin [Wed, 4 May 2011 14:37:58 +0000 (16:37 +0200)]
Libtool brings in the dependencies of libevent_openssl.la automatically

13 years agolibssl depends on libcrypto, not the other way around.
Peter Rosin [Wed, 4 May 2011 14:34:28 +0000 (16:34 +0200)]
libssl depends on libcrypto, not the other way around.

13 years agoOops; that new unit test breaks for epoll. Fix it.
Nick Mathewson [Tue, 3 May 2011 18:22:48 +0000 (14:22 -0400)]
Oops; that new unit test breaks for epoll.  Fix it.

13 years agoFix a warn-and-fail bug in kqueue by providing kevent() room to report errors
Nick Mathewson [Tue, 3 May 2011 17:54:57 +0000 (13:54 -0400)]
Fix a warn-and-fail bug in kqueue by providing kevent() room to report errors

Apparently, kevent fails gracefully if there is not enough space in its
output events array to report every _event_... but it just dies and returns
-1 if there is not enough space to report every _error_.

There are a couple of possible fixes here.  One would to handle -1
returns from kevent better by re-growing the array and retrying... but
that seems a little error prone.  Instead, I'm just going to say that
the events array must be large enough to handle all the errors.

This patch also adds a unit test designed to make sure that our
many-events-out code works even if not all the events are added at
once.

13 years agoAdd missing words to EVLOOP_NONBLOCK documentation
Nick Mathewson [Tue, 3 May 2011 03:22:09 +0000 (23:22 -0400)]
Add missing words to EVLOOP_NONBLOCK documentation

13 years agoBump version to 2.0.11-stable-dev
Nick Mathewson [Thu, 28 Apr 2011 01:28:11 +0000 (21:28 -0400)]
Bump version to 2.0.11-stable-dev

13 years agoIncrement version number to 2.0.11-stable release-2.0.11-stable
Nick Mathewson [Thu, 28 Apr 2011 00:25:57 +0000 (20:25 -0400)]
Increment version number to 2.0.11-stable

13 years agoAdd more people to the acknowledgments
Nick Mathewson [Thu, 28 Apr 2011 00:15:20 +0000 (20:15 -0400)]
Add more people to the acknowledgments

13 years agoChangelog for 2.0.11-stable
Nick Mathewson [Thu, 28 Apr 2011 00:03:46 +0000 (20:03 -0400)]
Changelog for 2.0.11-stable

13 years agoFix clang warning when resetting connection
Nick Mathewson [Wed, 27 Apr 2011 03:42:01 +0000 (23:42 -0400)]
Fix clang warning when resetting connection

This was a regression on 2.0.10-stable: clang was warning about
values that were unused (because event_debug wasn't using them unless
USE_DEBUG was defined).  Found by Sebastian Hahn.

13 years agoUse AM_CONDITIONAL, not AC_SUBST, to tell automake to build regress
Nick Mathewson [Sat, 23 Apr 2011 06:35:17 +0000 (02:35 -0400)]
Use AM_CONDITIONAL, not AC_SUBST, to tell automake to build regress

For some reason, this makes mingw much happier about building
regress.exe by default.  No, I'm afraid I don't know why.

13 years agoFix msvc build: it needed to know about _EVENT_HAVE_STRUCT_SOCKADDR_STORAGE
Nick Mathewson [Sat, 23 Apr 2011 06:31:04 +0000 (02:31 -0400)]
Fix msvc build: it needed to know about _EVENT_HAVE_STRUCT_SOCKADDR_STORAGE

13 years agoTry to fix up CHECK_REGRESS hack to not break on win32
Nick Mathewson [Sat, 23 Apr 2011 05:48:11 +0000 (01:48 -0400)]
Try to fix up CHECK_REGRESS hack to not break on win32