]> granicus.if.org Git - libevent/log
libevent
13 years agoBackport libevent to vanilla Autoconf 2.59 (as used in RHEL5)
Kevin Bowling [Mon, 3 Jan 2011 22:09:21 +0000 (15:09 -0700)]
Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5)

13 years agoAdd an evconfig-private.h stub for Win32.
Kevin Bowling [Sun, 2 Jan 2011 15:48:12 +0000 (08:48 -0700)]
Add an evconfig-private.h stub for Win32.

13 years agoAdd an include guard
Kevin Bowling [Sun, 2 Jan 2011 15:47:46 +0000 (08:47 -0700)]
Add an include guard

13 years agoInclude evconfig-private.h in internal files for great good.
Kevin Bowling [Sun, 2 Jan 2011 15:43:45 +0000 (08:43 -0700)]
Include evconfig-private.h in internal files for great good.

13 years agoFix a comment warning and add evconfig-private.h to .gitignore
Kevin Bowling [Sun, 2 Jan 2011 15:05:33 +0000 (08:05 -0700)]
Fix a comment warning and add evconfig-private.h to .gitignore

13 years agoRemove event-private.h and switch to evconfig-private.h
Kevin Bowling [Sun, 2 Jan 2011 15:04:12 +0000 (08:04 -0700)]
Remove event-private.h and switch to evconfig-private.h

13 years agoUse a Configuration Header Template for evconfig-private.h
Kevin Bowling [Sun, 2 Jan 2011 14:51:23 +0000 (07:51 -0700)]
Use a Configuration Header Template for evconfig-private.h

13 years agoRevert "evconfig-private.h with recusive configure subdirs"
Kevin Bowling [Sun, 2 Jan 2011 14:29:45 +0000 (07:29 -0700)]
Revert "evconfig-private.h with recusive configure subdirs"

This reverts commit ed53d5ef8053af08186ef80dfc1647cff769fac8.

13 years agoevconfig-private.h with recusive configure subdirs
Kevin Bowling [Sun, 2 Jan 2011 13:35:05 +0000 (06:35 -0700)]
evconfig-private.h with recusive configure subdirs

13 years agoAdd AC_GNU_SOURCE to the fallback case.
Kevin Bowling [Sun, 2 Jan 2011 12:14:41 +0000 (05:14 -0700)]
Add AC_GNU_SOURCE to the fallback case.

14 years agoEliminate a couple more manual internal _GNU_SOURCE defines
Kevin Bowling [Thu, 23 Dec 2010 06:24:01 +0000 (23:24 -0700)]
Eliminate a couple more manual internal _GNU_SOURCE defines

14 years agoRemove internal usage of _GNU_SOURCE
Kevin Bowling [Thu, 23 Dec 2010 06:08:10 +0000 (23:08 -0700)]
Remove internal usage of _GNU_SOURCE

14 years agoAdd event-private.h to noinst_HEADERS
Kevin Bowling [Thu, 23 Dec 2010 06:00:59 +0000 (23:00 -0700)]
Add event-private.h to noinst_HEADERS

14 years agoFilter '# define' statements from autoconf and generate event-private.h
Kevin Bowling [Thu, 23 Dec 2010 05:53:03 +0000 (22:53 -0700)]
Filter '# define' statements from autoconf and generate event-private.h

14 years agoAdd AC_USE_SYSTEM_EXTENSIONS to configure.in.
Kevin Bowling [Thu, 23 Dec 2010 05:11:26 +0000 (22:11 -0700)]
Add AC_USE_SYSTEM_EXTENSIONS to configure.in.
Requires follow on patches for correctness and robustness.

14 years agoMerge branch 'epoll_table_v2'
Nick Mathewson [Thu, 16 Dec 2010 19:37:15 +0000 (14:37 -0500)]
Merge branch 'epoll_table_v2'

14 years agoReindent epoll_apply_one_change()
Nick Mathewson [Thu, 16 Dec 2010 19:36:09 +0000 (14:36 -0500)]
Reindent epoll_apply_one_change()

14 years agoClean up error handling in epoll_apply_one_change() a little
Nick Mathewson [Thu, 16 Dec 2010 19:25:04 +0000 (14:25 -0500)]
Clean up error handling in epoll_apply_one_change() a little

The old code was more or less:
   if (op == X && errno == FOO) {
     ...
   } else if (op == Y && errno == BAR) {
     ...
   }
but really we wanted to do a switch (op) to avoid needless checks
and branches.

This patch leaves the indentation a little weird so as to make it
easier to see what changed; the next patch will fix the indentation.

14 years agoReplace big chain of if/thens in epoll.c with a table lookup
Nick Mathewson [Sun, 24 Oct 2010 16:53:52 +0000 (12:53 -0400)]
Replace big chain of if/thens in epoll.c with a table lookup

This should save a bunch of branches by doing instead a lookup in a
nice static table.

To ensure correctness, the table is generated from a Python script,
included with this commit.

14 years agoUse GetSystemTimeAsFileTime to implement gettimeofday on win32.
Nick Mathewson [Thu, 2 Sep 2010 21:52:20 +0000 (17:52 -0400)]
Use GetSystemTimeAsFileTime to implement gettimeofday on win32.

It is (in my benchmarks) way faster than _ftime, though the
conversion process is not so straightforward.  In theory, it can
have a better granularity too, though in practice who knows what
you're getting.

14 years agoUse current event set rather than current pending change when deciding whether to...
Mike Smellie [Mon, 19 Jul 2010 02:18:31 +0000 (14:18 +1200)]
Use current event set rather than current pending change when deciding whether to no-op a del

This alters event_changelist_del to quash deletion of events that
didn't exist in the first place.

As far as I can see, the add,delete, dispatch case described in the
original comment will never happen.  The recorded change is a single
operation, not a queue.  This seems to leave actions to delete
events that never existed as the real targets for no-oping

14 years agoBump version in master to 2.1.0-alpha-dev
Nick Mathewson [Thu, 16 Dec 2010 17:59:22 +0000 (12:59 -0500)]
Bump version in master to 2.1.0-alpha-dev

14 years agoBump version to 2.0.10-stable-dev
Nick Mathewson [Thu, 16 Dec 2010 17:57:23 +0000 (12:57 -0500)]
Bump version to 2.0.10-stable-dev

14 years agoAdd changelog for 2.0.10-stable release-2.0.10-stable
Nick Mathewson [Wed, 15 Dec 2010 19:31:08 +0000 (14:31 -0500)]
Add changelog for 2.0.10-stable

14 years agoAdd more acknowledgements to the readme for 2.0.10-stable
Nick Mathewson [Wed, 15 Dec 2010 19:30:04 +0000 (14:30 -0500)]
Add more acknowledgements to the readme for 2.0.10-stable

14 years agoSet the version to 2.0.10-stable
Nick Mathewson [Wed, 15 Dec 2010 19:29:50 +0000 (14:29 -0500)]
Set the version to 2.0.10-stable

14 years agoEVUTIL_ASSERT: Use sizeof() to avoid "unused variable" warnings.
Evan Jones [Mon, 6 Dec 2010 19:17:44 +0000 (14:17 -0500)]
EVUTIL_ASSERT: Use sizeof() to avoid "unused variable" warnings.

14 years agoAdd stuff to whatsnew based on reading include changes since August.
Nick Mathewson [Thu, 9 Dec 2010 17:17:58 +0000 (12:17 -0500)]
Add stuff to whatsnew based on reading include changes since August.

14 years agoDocument that the cpu_hint is only used on Windows with IOCP for now
Nick Mathewson [Thu, 9 Dec 2010 17:17:11 +0000 (12:17 -0500)]
Document that the cpu_hint is only used on Windows with IOCP for now

14 years agoConsistentize tabs
Nick Mathewson [Thu, 9 Dec 2010 16:47:54 +0000 (11:47 -0500)]
Consistentize tabs

14 years agoRemove end-of-line whitespace
Nick Mathewson [Thu, 9 Dec 2010 16:43:12 +0000 (11:43 -0500)]
Remove end-of-line whitespace

14 years agotweak readme, whatsnew
Nick Mathewson [Thu, 9 Dec 2010 16:40:35 +0000 (11:40 -0500)]
tweak readme, whatsnew

14 years agoFix a signed/unsigned comparison in the last commit
Nick Mathewson [Tue, 7 Dec 2010 16:45:14 +0000 (11:45 -0500)]
Fix a signed/unsigned comparison in the last commit

14 years agoReject overlong http requests early when Expect:100-continue is set
Constantine Verutin [Tue, 7 Dec 2010 16:43:52 +0000 (11:43 -0500)]
Reject overlong http requests early when Expect:100-continue is set

14 years agotests: Use relative includes ("") instead of system includes (<>)
Evan Jones [Thu, 2 Dec 2010 19:13:33 +0000 (14:13 -0500)]
tests: Use relative includes ("") instead of system includes (<>)

14 years agotests: Use new event2 headers instead of old compatibility headers.
Evan Jones [Thu, 2 Dec 2010 19:09:52 +0000 (14:09 -0500)]
tests: Use new event2 headers instead of old compatibility headers.

14 years agoUse relative includes instead of system includes consistently.
Evan Jones [Thu, 2 Dec 2010 15:26:12 +0000 (10:26 -0500)]
Use relative includes instead of system includes consistently.

14 years agobufferevent-internal.h: Use the new event2/util.h header, not evutil.h
Evan Jones [Thu, 2 Dec 2010 15:27:06 +0000 (10:27 -0500)]
bufferevent-internal.h: Use the new event2/util.h header, not evutil.h

14 years agoCorrectly notify the main thread when activating an event from a subthread
Nick Mathewson [Thu, 2 Dec 2010 02:28:03 +0000 (21:28 -0500)]
Correctly notify the main thread when activating an event from a subthread

14 years agoMinor fix for IOCP shutdown handling fix
Kelly Brock [Tue, 30 Nov 2010 16:34:26 +0000 (11:34 -0500)]
Minor fix for IOCP shutdown handling fix

Call setsockopt() on the actual new socket, not on as->s, which was
set to INVALID_SOCKET.

14 years agoIncrement version to 2.0.9-rc-dev
Nick Mathewson [Tue, 30 Nov 2010 07:19:25 +0000 (02:19 -0500)]
Increment version to 2.0.9-rc-dev

14 years agoGive the correct date for 2.0.9-rc in the changelog release-2.0.9-rc
Nick Mathewson [Tue, 30 Nov 2010 06:21:00 +0000 (01:21 -0500)]
Give the correct date for 2.0.9-rc in the changelog

14 years agoIncrement version to 2.0.9-rc
Nick Mathewson [Tue, 23 Nov 2010 16:17:24 +0000 (11:17 -0500)]
Increment version to 2.0.9-rc

14 years agoBump VERSION_INFO to 5:0:0
Nick Mathewson [Tue, 23 Nov 2010 16:17:06 +0000 (11:17 -0500)]
Bump VERSION_INFO to 5:0:0

14 years agoChangelog and acknowledgments for 2.0.9-rc
Nick Mathewson [Tue, 23 Nov 2010 16:08:30 +0000 (11:08 -0500)]
Changelog and acknowledgments for 2.0.9-rc

14 years agoFix win32 build of http-server.c with unicode enabled
Nick Mathewson [Tue, 30 Nov 2010 05:53:16 +0000 (00:53 -0500)]
Fix win32 build of http-server.c with unicode enabled

14 years agoCorrectly detect timeouts during http connects
Nick Mathewson [Tue, 30 Nov 2010 05:05:54 +0000 (00:05 -0500)]
Correctly detect timeouts during http connects

14 years agoTry to fix an assertion failure related to close detection
Nick Mathewson [Tue, 30 Nov 2010 03:44:18 +0000 (22:44 -0500)]
Try to fix an assertion failure related to close detection

f700566c removed a line from evhttp_connection_stop_detectclose that
cleared the EVHTTP_CON_CLOSEDETECT flag.  I think this was an
accident, and suspect that it may be the cause of bug 3069555.

14 years agoPossible crash fix when freeing an underlying bufferevent of an openssl bufferevent
Nick Mathewson [Tue, 30 Nov 2010 03:14:54 +0000 (22:14 -0500)]
Possible crash fix when freeing an underlying bufferevent of an openssl bufferevent

14 years agoMerge remote branch 'chrisd/http_continue'
Nick Mathewson [Tue, 30 Nov 2010 02:56:23 +0000 (21:56 -0500)]
Merge remote branch 'chrisd/http_continue'

14 years agoPreliminary support for Continue expectation in evhttp.
Christopher Davis [Tue, 30 Nov 2010 02:25:04 +0000 (18:25 -0800)]
Preliminary support for Continue expectation in evhttp.

14 years agomake http-server example code build on win32
Nick Mathewson [Tue, 30 Nov 2010 01:39:09 +0000 (20:39 -0500)]
make http-server example code build on win32

14 years agoFix http-server.c compilation on freebsd
Nick Mathewson [Tue, 30 Nov 2010 01:13:19 +0000 (20:13 -0500)]
Fix http-server.c compilation on freebsd

14 years agoMerge remote branch 'chrisd/http_fixes2'
Nick Mathewson [Mon, 29 Nov 2010 19:25:33 +0000 (14:25 -0500)]
Merge remote branch 'chrisd/http_fixes2'

14 years agoAdd a few more comments.
Christopher Davis [Mon, 29 Nov 2010 15:18:32 +0000 (07:18 -0800)]
Add a few more comments.

14 years agoadd http-server to gitignore
Nick Mathewson [Fri, 26 Nov 2010 18:29:56 +0000 (13:29 -0500)]
add http-server to gitignore

14 years agoFix a misplaced ) in http_server.c
Nick Mathewson [Fri, 26 Nov 2010 18:28:48 +0000 (13:28 -0500)]
Fix a misplaced ) in http_server.c

14 years agoMerge branch '20_empty_body'
Nick Mathewson [Fri, 26 Nov 2010 17:59:02 +0000 (12:59 -0500)]
Merge branch '20_empty_body'

14 years agoAdd a basic example of how to write a static HTTP server.
Nick Mathewson [Mon, 18 Oct 2010 17:44:05 +0000 (13:44 -0400)]
Add a basic example of how to write a static HTTP server.

14 years agoAdd evhttp server alias interface, correct flagging of proxy requests.
Christopher Davis [Fri, 5 Nov 2010 18:17:07 +0000 (11:17 -0700)]
Add evhttp server alias interface, correct flagging of proxy requests.

evhttp needs to be mindful of all hostnames and addresses that clients
use to contact the main server and vhosts to know the difference between
proxy requests and non-proxy requests.

14 years agoMerge remote branch 'github/20_once_fixes'
Nick Mathewson [Fri, 26 Nov 2010 04:03:46 +0000 (23:03 -0500)]
Merge remote branch 'github/20_once_fixes'

14 years agoFix snprintf related failures on IRIX.
Kevin Bowling [Wed, 24 Nov 2010 02:40:23 +0000 (19:40 -0700)]
Fix snprintf related failures on IRIX.

14 years agoIf not WIN32, include <sys/socket.h> in event2/util.h.
Kevin Bowling [Wed, 24 Nov 2010 02:26:34 +0000 (19:26 -0700)]
If not WIN32, include <sys/socket.h> in event2/util.h.

14 years agoxlC doesn't obey C99 comments here. autoconf isn't invoking full C99
Kevin Bowling [Tue, 23 Nov 2010 21:09:03 +0000 (14:09 -0700)]
xlC doesn't obey C99 comments here.  autoconf isn't invoking full C99
mode.

14 years agoAdd some checks since lack of TAILQ_FOREACH doesn't imply lack of FIRST,
Kevin Bowling [Tue, 23 Nov 2010 07:22:01 +0000 (00:22 -0700)]
Add some checks since lack of TAILQ_FOREACH doesn't imply lack of FIRST,
END, NEXT, or INSERT_BEFORE.  Quiet some warnings in XL C.

14 years agoReworked AIX __ss_family workaround to use AC_STRUCT_MEMBER.
Kevin Bowling [Wed, 24 Nov 2010 02:09:08 +0000 (19:09 -0700)]
Reworked AIX __ss_family workaround to use AC_STRUCT_MEMBER.

14 years agoselect comes from <sys/select.h> according to POSIX.1-2001, or from a
Kevin Bowling [Tue, 23 Nov 2010 03:44:10 +0000 (20:44 -0700)]
select comes from <sys/select.h> according to POSIX.1-2001, or from a
variety of other standard headers on older systems, but not <select.h>.
AIX build fix.

14 years agoHandle evhttp PUT/POST requests with an empty body
Nick Mathewson [Wed, 24 Nov 2010 01:31:28 +0000 (20:31 -0500)]
Handle evhttp PUT/POST requests with an empty body

When we call evhttp_get_bodylen() [when transfer-encoding isn't set],
having req->ntoread == -1 means that we have no content-length.  But a
request with no content-length has no body!  We were treating the
absent content-length as meaning "read till closed", which only holds
for replies, not requests.

This patch also allows PATCH requests to have a body.

14 years agoRemove _event_initialized(); make event_initialized() a function(); make it consisten...
Nick Mathewson [Tue, 23 Nov 2010 18:08:07 +0000 (13:08 -0500)]
Remove _event_initialized(); make event_initialized() a function(); make it consistent on windows and non-windows

14 years agoDocument event_get_assignment
Nick Mathewson [Tue, 23 Nov 2010 17:26:46 +0000 (12:26 -0500)]
Document event_get_assignment

14 years agoNote that reentrant calls to libevent from logging cbs may fail badly
Nick Mathewson [Tue, 23 Nov 2010 17:26:34 +0000 (12:26 -0500)]
Note that reentrant calls to libevent from logging cbs may fail badly

14 years agoFix some irix compilation warnings spotted by Kevin Bowling
Nick Mathewson [Tue, 23 Nov 2010 02:02:34 +0000 (21:02 -0500)]
Fix some irix compilation warnings spotted by Kevin Bowling

14 years agoMerge remote branch 'kev009/master'
Nick Mathewson [Tue, 23 Nov 2010 01:24:03 +0000 (20:24 -0500)]
Merge remote branch 'kev009/master'

14 years agoFix IRIX build. sa_family collides with a #define in sys/socket.h on IRIX.
Kevin Bowling [Mon, 22 Nov 2010 23:40:31 +0000 (16:40 -0700)]
Fix IRIX build.  sa_family collides with a #define in sys/socket.h on IRIX.

14 years agoMerge remote branch 'github/20_getaddrinfo_cancel_v2'
Nick Mathewson [Mon, 22 Nov 2010 21:24:52 +0000 (16:24 -0500)]
Merge remote branch 'github/20_getaddrinfo_cancel_v2'

14 years agoAdd a stress test for getaddrinfo_cancel
Nick Mathewson [Mon, 22 Nov 2010 21:24:09 +0000 (16:24 -0500)]
Add a stress test for getaddrinfo_cancel

14 years agoMerge remote branches 'github/20_epoll_nochangelist_v4', 'github/20_openssl_closeonfr...
Nick Mathewson [Mon, 22 Nov 2010 20:52:34 +0000 (15:52 -0500)]
Merge remote branches 'github/20_epoll_nochangelist_v4', 'github/20_openssl_closeonfree' and 'github/20_cloexec'

14 years agoReorder backends in test.sh to match preference order in event.c
Nick Mathewson [Mon, 22 Nov 2010 19:13:24 +0000 (14:13 -0500)]
Reorder backends in test.sh to match preference order in event.c

14 years agoMake unit tests for epoll-with-changelist pass
Nick Mathewson [Mon, 22 Nov 2010 19:10:01 +0000 (14:10 -0500)]
Make unit tests for epoll-with-changelist pass

The only changes needed were to handle the fact that the methodname
"epoll (with changelist)" matches the environment variable
EVENT_NOEPOLL rather than the imaginary "EVENT_EPOLL (WITH CHANGELIST)".

14 years agoDisable changelist for epoll by default because of Linux dup() bug; add an option...
Nick Mathewson [Sun, 14 Nov 2010 22:52:16 +0000 (17:52 -0500)]
Disable changelist for epoll by default because of Linux dup() bug; add an option and/or an envvar to reenable it for speed.

Rename option to control epoll changelist; make epoll changelist off by default

14 years agoMake sure the CLOEXEC flag is set on fds we open for base notification
Nick Mathewson [Sat, 20 Nov 2010 06:41:34 +0000 (01:41 -0500)]
Make sure the CLOEXEC flag is set on fds we open for base notification

14 years agoResolve an evport bug in the thread/forking test
Nick Mathewson [Fri, 19 Nov 2010 22:09:30 +0000 (17:09 -0500)]
Resolve an evport bug in the thread/forking test

14 years agoMake evdns_getaddrinfo_cancel threadsafe
Nick Mathewson [Fri, 19 Nov 2010 17:14:18 +0000 (12:14 -0500)]
Make evdns_getaddrinfo_cancel threadsafe

14 years agoFix some more cancel-related bugs in getaddrinfo_async
Nick Mathewson [Fri, 19 Nov 2010 17:01:05 +0000 (12:01 -0500)]
Fix some more cancel-related bugs in getaddrinfo_async

Also imposed a new rule to make this much much simpler: no freeing
the getaddrinfo request until both dns callbacks have been invoked.

14 years agoAvoid double-invocation of user callback with EVUTIL_EAI_CANCEL
Nick Mathewson [Fri, 19 Nov 2010 16:33:48 +0000 (11:33 -0500)]
Avoid double-invocation of user callback with EVUTIL_EAI_CANCEL

14 years agoUse the US-English "canceled", not the UK "cancelled".
Nick Mathewson [Tue, 16 Nov 2010 17:55:10 +0000 (12:55 -0500)]
Use the US-English "canceled", not the UK "cancelled".

14 years agoFix a memory leak in evhttp_uri_free.
Nick Mathewson [Wed, 17 Nov 2010 05:09:10 +0000 (00:09 -0500)]
Fix a memory leak in evhttp_uri_free.

14 years agoFix bug in bufferevent_connect on an openssl bufferevent that already had an fd
Nick Mathewson [Mon, 15 Nov 2010 00:52:18 +0000 (19:52 -0500)]
Fix bug in bufferevent_connect on an openssl bufferevent that already had an fd

The problem was that we were using openssl's BIO code's shutdown flag
whenever BEV_OPT_CLOSE_ON_FREE was set.  This made the BIO close the
socket when it was freed... but it would be freed whenever we did a
setfd on the bufferevent_openssl, even the no-op setfd in
bufferevent_connect.

So instead, we just set the shutdown flag to 0, and handle closing the
fd ourselves.

Spotted by Linus Nordberg

14 years agoClarify EVLOOP_* documentation to be more precise.
Nick Mathewson [Mon, 15 Nov 2010 00:34:49 +0000 (19:34 -0500)]
Clarify EVLOOP_* documentation to be more precise.

14 years agoDo not let EVLOOP_ONCE exit the loop until all deferred callbacks have run
Nick Mathewson [Mon, 15 Nov 2010 00:32:13 +0000 (19:32 -0500)]
Do not let EVLOOP_ONCE exit the loop until all deferred callbacks have run

14 years agoMake EVLOOP_ONCE ignore internal events
Nick Mathewson [Mon, 15 Nov 2010 00:25:54 +0000 (19:25 -0500)]
Make EVLOOP_ONCE ignore internal events

Merely getting an internal notification event from having an event
added or deleted from another thread should not cause
event_base_loop(base, EVLOOP_ONCE) to exit; previously, it did.

14 years agoOnly clear underlying callbacks when the user hasn't reset them.
Nick Mathewson [Tue, 9 Nov 2010 20:18:59 +0000 (15:18 -0500)]
Only clear underlying callbacks when the user hasn't reset them.

14 years agoWhen closing a filtering bufferevent, clear callbacks on the underlying bufferevent
Nick Mathewson [Tue, 9 Nov 2010 16:43:47 +0000 (11:43 -0500)]
When closing a filtering bufferevent, clear callbacks on the underlying bufferevent

Previously, if BEV_OPT_CLOSE_ON_FREE wasn't set on a
bufferevent_filter or a filtering bufferevent_openssl, when we went
to free the filtering bufferevent, we'd leave the underlying
bufferevent unchanged.  That's not so good, since the callbacks are
set to activate stuff in the filtering bufferevent that we're about
to free.  Instead, set all the callbacks to NULL.

14 years agoMerge remote branches 'github/20_evdns_cancel_segfault_v2', 'github/20_http_close_det...
Nick Mathewson [Tue, 9 Nov 2010 15:19:05 +0000 (10:19 -0500)]
Merge remote branches 'github/20_evdns_cancel_segfault_v2', 'github/20_http_close_detect', 'github/20_http_versions', 'github/20_more_http_methods', 'github/20_shutdown_iocp_listener' and 'github/20_win64_fixes'

14 years agoRefactor http version parsing into a single function
Nick Mathewson [Tue, 9 Nov 2010 15:14:32 +0000 (10:14 -0500)]
Refactor http version parsing into a single function

Based on a suggestion by Chris Davis to make
evhttp_parse_response_line tolerate odd versions too.

14 years agoRemove some debugging puts() calls from allow_methods test
Nick Mathewson [Tue, 9 Nov 2010 15:03:00 +0000 (10:03 -0500)]
Remove some debugging puts() calls from allow_methods test

14 years agoSet SO_UPDATE_ACCEPT_CONTEXT on sockets from AcceptEx so that shutdown() can work
Nick Mathewson [Thu, 4 Nov 2010 20:40:44 +0000 (15:40 -0500)]
Set SO_UPDATE_ACCEPT_CONTEXT on sockets from AcceptEx so that shutdown() can work

Based on patch (and lots of debugging work) by Kelly Brock.

14 years agoFix a mistake in http documentation found by Julien Blache
Nick Mathewson [Thu, 4 Nov 2010 20:04:28 +0000 (16:04 -0400)]
Fix a mistake in http documentation found by Julien Blache

14 years agoNever call evhttp_readcb while writing.
Nick Mathewson [Thu, 4 Nov 2010 18:05:08 +0000 (14:05 -0400)]
Never call evhttp_readcb while writing.

14 years agoDon't disable reading from the HTTP connection after sending the request to be notifi...
Felix Nawothnig [Tue, 1 Jun 2010 02:45:55 +0000 (04:45 +0200)]
Don't disable reading from the HTTP connection after sending the request to be notified of connection-close in time