]> granicus.if.org Git - libevent/log
libevent
11 years agoMove prototype of evhttp_decode_uri_internal() to http-internal.h
Azat Khuzhin [Fri, 1 Mar 2013 08:00:24 +0000 (12:00 +0400)]
Move prototype of evhttp_decode_uri_internal() to http-internal.h

Make it non static, that can be called from tests

11 years agouri decode: changed the test for the existence of the next character
Azat Khuzhin [Thu, 28 Feb 2013 19:10:02 +0000 (23:10 +0400)]
uri decode: changed the test for the existence of the next character

Fix for 64b6eceaba1a4

More info here
https://github.com/azat/libevent/commit/64b6eceaba1a40ab0b175fa9fd9329d3e978ce6e#commitcomment-2714685

11 years agouri decode: fix for warning "use of uninitialised value"
Azat Khuzhin [Thu, 28 Feb 2013 13:19:44 +0000 (17:19 +0400)]
uri decode: fix for warning "use of uninitialised value"

This patch add check in evhttp_decode_uri_internal() that next 2 symbols
are exists in array of chars for decoding, if don't have two next 2
symbols don't try to decode '%FF'

11 years agoMerge pull request #41 from ppelleti/winsock-errs
Nick Mathewson [Tue, 26 Feb 2013 23:22:03 +0000 (15:22 -0800)]
Merge pull request #41 from ppelleti/winsock-errs

FormatMessage for winsock errors

11 years agotest filling up the hash table a bit
Patrick Pelletier [Tue, 26 Feb 2013 04:13:01 +0000 (20:13 -0800)]
test filling up the hash table a bit

11 years agouse hashtable instead of linked list to cache winsock errors
Patrick Pelletier [Tue, 26 Feb 2013 03:02:32 +0000 (19:02 -0800)]
use hashtable instead of linked list to cache winsock errors

as discussed here:
https://github.com/libevent/libevent/pull/41#issuecomment-13611817

11 years agomake sure caching works, and we don't leak memory
Patrick Pelletier [Fri, 15 Feb 2013 04:14:37 +0000 (20:14 -0800)]
make sure caching works, and we don't leak memory

11 years agouse FormatMessage for winsock errors
Patrick Pelletier [Fri, 8 Feb 2013 01:20:08 +0000 (17:20 -0800)]
use FormatMessage for winsock errors

as discussed here:
http://archives.seul.org/libevent/users/Feb-2013/msg00004.html

11 years agoa program to print out the error strings for winsock errors
Patrick Pelletier [Fri, 8 Feb 2013 01:06:49 +0000 (17:06 -0800)]
a program to print out the error strings for winsock errors

11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 14 Feb 2013 19:13:11 +0000 (14:13 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

11 years agofix #73 and fix http_connection_fail_test to catch it
Greg Hazel [Thu, 14 Feb 2013 17:54:56 +0000 (09:54 -0800)]
fix #73 and fix http_connection_fail_test to catch it

11 years agoUnit test for event_remove_timer with EV_PERSIST.
Nick Mathewson [Wed, 13 Feb 2013 16:38:57 +0000 (11:38 -0500)]
Unit test for event_remove_timer with EV_PERSIST.

Patch from dcicppin on sourceforge.

11 years agoMake event_remove_timer behave correctly with persistent timers
Nick Mathewson [Tue, 12 Feb 2013 20:10:50 +0000 (15:10 -0500)]
Make event_remove_timer behave correctly with persistent timers

11 years agoMerge remote-tracking branch 'ppelleti/nmake-clean-exes'
Nick Mathewson [Mon, 11 Feb 2013 16:25:25 +0000 (11:25 -0500)]
Merge remote-tracking branch 'ppelleti/nmake-clean-exes'

11 years agoAvoid using $(top_srcdir) in TESTS.
Nick Mathewson [Sat, 9 Feb 2013 03:10:05 +0000 (22:10 -0500)]
Avoid using $(top_srcdir) in TESTS.

Newer automakes don't like this.

11 years agoUse AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13 compat
Nick Mathewson [Fri, 8 Feb 2013 18:03:29 +0000 (13:03 -0500)]
Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13 compat

Patch from cazfi.

11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Sat, 9 Feb 2013 03:09:00 +0000 (22:09 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

This is an "ours" commit: I'm not taking the recent autotools changes
from patches-2.0, since they'd conflict with master.

11 years agoAvoid using top_srcdir in TESTS-new automakes do not like this
Nick Mathewson [Sat, 9 Feb 2013 03:08:18 +0000 (22:08 -0500)]
Avoid using top_srcdir in TESTS-new automakes do not like this

11 years agoRename configure.in to configure.ac to appease newer autoconfs
Nick Mathewson [Sat, 9 Feb 2013 03:07:43 +0000 (22:07 -0500)]
Rename configure.in to configure.ac to appease newer autoconfs

11 years agoUse AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13 compat
Nick Mathewson [Fri, 8 Feb 2013 18:03:29 +0000 (13:03 -0500)]
Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13 compat

Patch from cazfi.

11 years ago"buffer" spelling
Patrick Pelletier [Thu, 31 Jan 2013 00:07:30 +0000 (16:07 -0800)]
"buffer" spelling

11 years agoremove all exes on "make clean", not just regress.exe
Patrick Pelletier [Fri, 8 Feb 2013 01:14:18 +0000 (17:14 -0800)]
remove all exes on "make clean", not just regress.exe

11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 5 Feb 2013 20:09:31 +0000 (15:09 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

11 years agoFix a locking error in bufferevent_socket_get_dns_error.
Nick Mathewson [Tue, 5 Feb 2013 20:07:32 +0000 (15:07 -0500)]
Fix a locking error in bufferevent_socket_get_dns_error.

Patch from Ka-Hing Cheung.

11 years agoMerge pull request #30 from ppelleti/valgrind-epoll
Nick Mathewson [Mon, 4 Feb 2013 21:50:58 +0000 (13:50 -0800)]
Merge pull request #30 from ppelleti/valgrind-epoll

avoid valgrind false positive by zeroing epoll_event

11 years agoMerge pull request #39 from azat/fix-http-for-ipv6
Nick Mathewson [Mon, 4 Feb 2013 21:49:08 +0000 (13:49 -0800)]
Merge pull request #39 from azat/fix-http-for-ipv6

Fix ipv6 support for http. When URL contain domain, not IP address.

11 years agoMerge pull request #37 from ppelleti/fix-indentation
Nick Mathewson [Mon, 4 Feb 2013 21:33:10 +0000 (13:33 -0800)]
Merge pull request #37 from ppelleti/fix-indentation

fix some hinky indentation in evhttp_make_request

11 years agoPreliminary changes for Minix3.
Nicholas Heath [Sun, 3 Feb 2013 19:08:37 +0000 (19:08 +0000)]
Preliminary changes for Minix3.

11 years agoAdd regress test ipv6_for_domain.
Azat Khuzhin [Sat, 26 Jan 2013 22:17:02 +0000 (02:17 +0400)]
Add regress test ipv6_for_domain.

Written for commit 71e709c7829275a594f767b27468b1b52e8b5bb9.
Fix ipv6 support for http. When URL contain domain, not IP address.

11 years agoImplement EVUTIL_ERR_IS_EAGAIN on windows.
Nick Mathewson [Wed, 23 Jan 2013 16:55:09 +0000 (16:55 +0000)]
Implement EVUTIL_ERR_IS_EAGAIN on windows.

11 years agoFix ipv6 support for http. When URL contain domain, not IP address.
Azat Khuzhin [Tue, 22 Jan 2013 22:45:32 +0000 (02:45 +0400)]
Fix ipv6 support for http. When URL contain domain, not IP address.

Before this patch socket created before domain was resolved, and it
always create with AF_INET (ipv4), but we must create socket only after
domain was resolved to understad which protocol family have domain
address.

Thank to Patrick Pelletier, who found this bug.

11 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 22 Jan 2013 17:10:07 +0000 (17:10 +0000)]
Merge remote-tracking branch 'origin/patches-2.0'

11 years agoFix a mistake in evbuffer_remove() arguments in example http server code
Gyepi Sam [Tue, 22 Jan 2013 16:59:07 +0000 (16:59 +0000)]
Fix a mistake in evbuffer_remove() arguments in example http server code

(commit message by nickm)

11 years agofix some hinky indentation in evhttp_make_request
Patrick Pelletier [Sat, 19 Jan 2013 04:25:41 +0000 (20:25 -0800)]
fix some hinky indentation in evhttp_make_request

11 years agoFix typo : Dispatching instead of Dispaching
Volker Lendecke [Thu, 17 Jan 2013 14:01:32 +0000 (15:01 +0100)]
Fix typo : Dispatching instead of Dispaching

11 years agoWhen EWOULDBLOCK is not EAGAIN, treat it as equivalent to it
Nick Mathewson [Sat, 12 Jan 2013 00:37:34 +0000 (16:37 -0800)]
When EWOULDBLOCK is not EAGAIN, treat it as equivalent to it

Acording to http://stackoverflow.com/questions/7003234/which-systems-define-eagain-and-ewouldblock-as-different-values
there are some older unixes that distinguish these error.s

12 years agoFix harmless clang enum warning
Sebastian Hahn [Mon, 31 Dec 2012 17:29:56 +0000 (18:29 +0100)]
Fix harmless clang enum warning

12 years agoFix comment to refer to sample/include.am correctly
Sebastian Hahn [Fri, 21 Sep 2012 06:38:56 +0000 (08:38 +0200)]
Fix comment to refer to sample/include.am correctly

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 20 Dec 2012 16:50:23 +0000 (11:50 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoAvoid double-close on getsockname error in evutil_ersatz_socketpair
Nick Mathewson [Thu, 20 Dec 2012 16:48:05 +0000 (11:48 -0500)]
Avoid double-close on getsockname error in evutil_ersatz_socketpair

Found by coverity; CID 739726

12 years agoAvoid leaking fds on evconnlistener with no callback set
Nick Mathewson [Thu, 20 Dec 2012 16:47:09 +0000 (11:47 -0500)]
Avoid leaking fds on evconnlistener with no callback set

There's no way to retrieve an fd from an evconnlistener whose
callback has been cleared, so we had better close any such fd.

Found by coverity; CID 739725.

12 years agoFix cut-and-paste err in whatsnew-2.1
Nick Mathewson [Tue, 11 Dec 2012 17:53:09 +0000 (12:53 -0500)]
Fix cut-and-paste err in whatsnew-2.1

12 years agominor documentation typos
Patrick Pelletier [Wed, 28 Nov 2012 08:20:13 +0000 (00:20 -0800)]
minor documentation typos

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 4 Dec 2012 17:32:26 +0000 (12:32 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoFix compilation with WIN32_HAVE_CONDITION_VARIABLES enabled
Nick Mathewson [Tue, 4 Dec 2012 17:01:25 +0000 (12:01 -0500)]
Fix compilation with WIN32_HAVE_CONDITION_VARIABLES enabled

Reported by Xiuqiang Jiang

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Mon, 19 Nov 2012 15:58:04 +0000 (10:58 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoIncrement version to 2.0.21-stable-dev
Nick Mathewson [Mon, 19 Nov 2012 15:56:16 +0000 (10:56 -0500)]
Increment version to 2.0.21-stable-dev

12 years agoIncrement version to 2.1.2-alpha-dev
Nick Mathewson [Mon, 19 Nov 2012 15:53:25 +0000 (10:53 -0500)]
Increment version to 2.1.2-alpha-dev

12 years agoFix a bug when running "make verify" out-of-tree release-2.1.2-alpha
Nick Mathewson [Mon, 19 Nov 2012 14:07:13 +0000 (09:07 -0500)]
Fix a bug when running "make verify" out-of-tree

12 years agoClean up and clarify a little more documentation
Nick Mathewson [Mon, 19 Nov 2012 00:32:41 +0000 (19:32 -0500)]
Clean up and clarify a little more documentation

12 years agoMake the argument to bufferevent_get_priority const
Nick Mathewson [Mon, 19 Nov 2012 00:32:11 +0000 (19:32 -0500)]
Make the argument to bufferevent_get_priority const

12 years agoAvoid defining recommended functions in terms of deprecated ones
Nick Mathewson [Sun, 18 Nov 2012 23:59:19 +0000 (18:59 -0500)]
Avoid defining recommended functions in terms of deprecated ones

12 years agoUpdate "what's new in Libevent 2.1"
Nick Mathewson [Sun, 18 Nov 2012 16:25:13 +0000 (11:25 -0500)]
Update "what's new in Libevent 2.1"

12 years agoBump versions to 2.1.2-alpha
Nick Mathewson [Sun, 18 Nov 2012 15:53:52 +0000 (10:53 -0500)]
Bump versions to 2.1.2-alpha

12 years agoUpdate changelog for 2.1.2-alpha
Nick Mathewson [Sun, 18 Nov 2012 15:53:26 +0000 (10:53 -0500)]
Update changelog for 2.1.2-alpha

12 years agoUpdate ChangeLog-2.0
Nick Mathewson [Sun, 18 Nov 2012 07:01:26 +0000 (02:01 -0500)]
Update ChangeLog-2.0

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Sun, 18 Nov 2012 06:44:09 +0000 (01:44 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoFix a gcc warning in rtrim test
Nick Mathewson [Sun, 18 Nov 2012 06:40:33 +0000 (01:40 -0500)]
Fix a gcc warning in rtrim test

12 years agoFix a warning when building without threading.
Nick Mathewson [Sun, 18 Nov 2012 06:40:13 +0000 (01:40 -0500)]
Fix a warning when building without threading.

12 years agoIncrement libtool version for 2.0.21 too release-2.0.21-stable
Nick Mathewson [Sun, 18 Nov 2012 06:39:10 +0000 (01:39 -0500)]
Increment libtool version for 2.0.21 too

12 years agoIncrement version to 2.0.21-stable
Nick Mathewson [Sun, 18 Nov 2012 06:38:07 +0000 (01:38 -0500)]
Increment version to 2.0.21-stable

12 years agoChangelog for 2.0.21-stable
Nick Mathewson [Sun, 18 Nov 2012 06:36:33 +0000 (01:36 -0500)]
Changelog for 2.0.21-stable

12 years agoMake ssl version check in unit tests work
Nick Mathewson [Sun, 18 Nov 2012 06:36:03 +0000 (01:36 -0500)]
Make ssl version check in unit tests work

12 years agoavoid valgrind false positive by zeroing epoll_event
Patrick Pelletier [Sat, 17 Nov 2012 05:38:04 +0000 (21:38 -0800)]
avoid valgrind false positive by zeroing epoll_event

12 years agoMake bufferevent_set_timeouts(bev, NULL, NULL) have plausible semantics
Nick Mathewson [Fri, 16 Nov 2012 23:34:43 +0000 (18:34 -0500)]
Make bufferevent_set_timeouts(bev, NULL, NULL) have plausible semantics

12 years agoAdd an event_remove_timer() to remove timer on an event without deleting it
Nick Mathewson [Fri, 16 Nov 2012 21:15:03 +0000 (16:15 -0500)]
Add an event_remove_timer() to remove timer on an event without deleting it

12 years agoFix a couple of compile warnings in the unit tests
Nick Mathewson [Fri, 16 Nov 2012 21:17:07 +0000 (16:17 -0500)]
Fix a couple of compile warnings in the unit tests

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 16 Nov 2012 17:06:40 +0000 (12:06 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoAvoid crash when event_pending() called with no event_base set on event
Nick Mathewson [Fri, 16 Nov 2012 16:55:27 +0000 (11:55 -0500)]
Avoid crash when event_pending() called with no event_base set on event

Instead, give a warning and return 0.

Reported by Antony Dovgal on github as
   https://github.com/libevent/libevent/issues/19

12 years agoUse EVUTIL_SOCKET_ERROR() wrapper to save/restor errno in evhttp_connection_fail_
Nick Mathewson [Fri, 16 Nov 2012 16:51:42 +0000 (11:51 -0500)]
Use EVUTIL_SOCKET_ERROR() wrapper to save/restor errno in evhttp_connection_fail_

12 years agoMerge remote-tracking branch 'ppelleti/preserve-errno'
Nick Mathewson [Fri, 16 Nov 2012 16:49:46 +0000 (11:49 -0500)]
Merge remote-tracking branch 'ppelleti/preserve-errno'

12 years agoadd evhttp_request_get_response_code_line
Jay R. Wren [Wed, 10 Oct 2012 17:16:02 +0000 (13:16 -0400)]
add evhttp_request_get_response_code_line

This is needed to be able to read the response code line especially
when acting as an http client using evhttp_make_request.

(patched by nickm to make the return value const)

12 years agoMove evutil_rtrim_lws_ to evutil.c where it belongs
Nick Mathewson [Fri, 16 Nov 2012 16:41:59 +0000 (11:41 -0500)]
Move evutil_rtrim_lws_ to evutil.c where it belongs

12 years agoRemove internal ws from multiline http headers correctly
Nick Mathewson [Fri, 16 Nov 2012 16:38:53 +0000 (11:38 -0500)]
Remove internal ws from multiline http headers correctly

According to RFC2616:

   All linear white space, including folding, has the same semantics
   as SP. A recipient MAY replace any linear white space with a single
   SP before interpreting the field value or forwarding the message
   downstream.

12 years agoRemove trailing tabs in HTTP headers as well.
Nick Mathewson [Fri, 16 Nov 2012 16:29:34 +0000 (11:29 -0500)]
Remove trailing tabs in HTTP headers as well.

12 years agoClean up rtrim implementation
Nick Mathewson [Fri, 16 Nov 2012 16:13:29 +0000 (11:13 -0500)]
Clean up rtrim implementation

If I understand the C standard correctly, you can't actually point
at a position immediately _before_ the start of an object; only at the
position immediately after.

According to J.2 in the standard, in its big list of undefined behavior:

 "The behavior is undefined in the following circumstances:
     ...
   — Addition or subtraction of a pointer into, or just beyond, an
    array object and an integer type produces a result that does not
    point into, or just beyond, the same array object (6.5.6)."

So we've got to fix rtrim to not do that.  Also, make it unit tested,
and give it an evutil_*_ name.

12 years agoignore LWS after field-content in headers
Artem Germanov [Mon, 21 May 2012 04:08:52 +0000 (21:08 -0700)]
ignore LWS after field-content in headers

12 years agoMerge remote-tracking branch 'azat/fix-typo-evets'
Nick Mathewson [Fri, 16 Nov 2012 15:53:52 +0000 (10:53 -0500)]
Merge remote-tracking branch 'azat/fix-typo-evets'

12 years agoMerge remote-tracking branch 'ppelleti/tiny-doc-typos'
Nick Mathewson [Fri, 16 Nov 2012 15:51:26 +0000 (10:51 -0500)]
Merge remote-tracking branch 'ppelleti/tiny-doc-typos'

12 years agoUse correct openssl libs and includes in pkgconfig file
Nick Mathewson [Fri, 16 Nov 2012 15:48:13 +0000 (10:48 -0500)]
Use correct openssl libs and includes in pkgconfig file

Previously we were saying -lssl -lcrypto unconditionally when
we should have been saying OPENSSL_LIBS.

Based on a patch from Patrick Pelletier

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 16 Nov 2012 15:44:57 +0000 (10:44 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoremove stray 'x' so print_err will compile when uncommented
Patrick Pelletier [Thu, 8 Nov 2012 03:48:22 +0000 (19:48 -0800)]
remove stray 'x' so print_err will compile when uncommented

12 years agoMerge pull request #27 from pallas/master
Nick Mathewson [Fri, 16 Nov 2012 15:42:17 +0000 (07:42 -0800)]
Merge pull request #27 from pallas/master

Fix event_dlist definition when sys/queue not included

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 16 Nov 2012 15:29:37 +0000 (10:29 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
test/rpcgen_wrapper.sh

12 years agoMake rpcgen_wrapper.sh work on systems without a "python2" binary
Nick Mathewson [Fri, 16 Nov 2012 15:28:19 +0000 (10:28 -0500)]
Make rpcgen_wrapper.sh work on systems without a "python2" binary

12 years agoAdd a unit test in which an event is created with event_base_once() but never fires
Nick Mathewson [Fri, 16 Nov 2012 15:17:34 +0000 (10:17 -0500)]
Add a unit test in which an event is created with event_base_once() but never fires

12 years agoMerge branch '21_event_cleanup_v3'
Nick Mathewson [Fri, 16 Nov 2012 15:13:15 +0000 (10:13 -0500)]
Merge branch '21_event_cleanup_v3'

12 years agoFree dangling event_once objects on event_base_free()
Nick Mathewson [Fri, 15 Jul 2011 15:10:54 +0000 (11:10 -0400)]
Free dangling event_once objects on event_base_free()

This patch makes us keep event_once objects in a doubly linked list
so we can free any once that haven't triggered when we call
event_base_free().

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 15 Nov 2012 16:45:12 +0000 (11:45 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoWarn when openssl version in unit test mismatches compiled version.
Nick Mathewson [Thu, 15 Nov 2012 16:43:20 +0000 (11:43 -0500)]
Warn when openssl version in unit test mismatches compiled version.

12 years agoFix renegotiation test to work around openssl 1.0.1 bug
Nick Mathewson [Thu, 15 Nov 2012 16:42:14 +0000 (11:42 -0500)]
Fix renegotiation test to work around openssl 1.0.1 bug

There's a bug in openssl 1.0.1 where TLS1.1 and TLS1.2 can't
renegotiate with themselves.  When testing renegotiation with OpenSSL
>=1.0.1 and <1.0.1d, disable those protocols.

12 years agoUse the same CFLAGS for openssl when building unit tests as with libevent
Nick Mathewson [Thu, 15 Nov 2012 16:40:33 +0000 (11:40 -0500)]
Use the same CFLAGS for openssl when building unit tests as with libevent

12 years agopreserve errno in evhttp_connection_fail_ for inspection by the callback
Patrick Pelletier [Wed, 14 Nov 2012 05:22:39 +0000 (21:22 -0800)]
preserve errno in evhttp_connection_fail_ for inspection by the callback

12 years agoFix event_dlist definition when sys/queue not included
Derrick Pallas [Sat, 10 Nov 2012 19:22:15 +0000 (11:22 -0800)]
Fix event_dlist definition when sys/queue not included

This header adds TAILQ_HEAD and TAILQ_ENTRY if sys/queue is not included.
There is a similar macro that adds LIST_ENTRY but not LIST_HEAD, even though
LIST_HEAD is used later.

This change pulls in the correct definition (swiped from sys/queue) for
LIST_HEAD and cleans up the one spot where it is used.  The change can be
tested by adding

#undef LIST_HEAD
#undef LIST_ENTRY

right before the #ifndef checks and removing

#define EVENT_DEFINED_LISTENTRY_
#define EVENT_DEFINED_LISTHEAD_

so that the macros persist later.

12 years agoClean up unit test for evbuffer_file_segment_add_cleanup_cb a little
Nick Mathewson [Tue, 6 Nov 2012 22:42:46 +0000 (17:42 -0500)]
Clean up unit test for evbuffer_file_segment_add_cleanup_cb a little

12 years agoAdd a new callback to get called on evbuffer_file_segment free
yangacer [Tue, 6 Nov 2012 22:37:28 +0000 (17:37 -0500)]
Add a new callback to get called on evbuffer_file_segment free

12 years agoMerge remote-tracking branch 'github/20_win64_compilation' into 21_win64_compilation
Nick Mathewson [Fri, 2 Nov 2012 15:46:14 +0000 (11:46 -0400)]
Merge remote-tracking branch 'github/20_win64_compilation' into 21_win64_compilation

Conflicts:
http.c
signal.c

12 years agoFix compilation on mingw64 with -DUSE_DEBUG
Nick Mathewson [Fri, 2 Nov 2012 15:44:29 +0000 (11:44 -0400)]
Fix compilation on mingw64 with -DUSE_DEBUG

12 years agoFix a few mingw64 incompatibilities introduced since 2.0
Nick Mathewson [Fri, 2 Nov 2012 14:58:02 +0000 (10:58 -0400)]
Fix a few mingw64 incompatibilities introduced since 2.0

12 years agoMerge remote-tracking branch 'github/20_win64_compilation' into 21_win64_compilation
Nick Mathewson [Thu, 1 Nov 2012 22:12:07 +0000 (18:12 -0400)]
Merge remote-tracking branch 'github/20_win64_compilation' into 21_win64_compilation

Conflicts:
event.c
http.c
sample/event-read-fifo.c
test/regress_bufferevent.c