Log

Author Commit Date CI Message
Nick Mathewson 4eb281c8 2011-02-13T01:29:54 FIX: comment internal headers used in sample code.
Nick Mathewson eb692be9 2011-02-13T01:27:06 NM: Fix sample/http-server ipv6 fixes Fix 1: Use #include "../xyz" rather than #include <../xyz> Fix 2: util-internal.h includes ipv6-internal.h, which in turn defines a replacement AF_INET6 on platforms that don't have it. As such, the AF_INET6 checks shouldn't be needed. (right?)
Harlan Stenn bbf55150 2011-02-13T01:25:33 Include util-internal.h as needed to build on platforms with no sockaddr_storage
Harlan Stenn 10c834c4 2011-02-13T01:22:25 Include arpa/inet.h as needed on HPUX
Nick Mathewson 63a715e1 2011-02-21T23:25:13 Correctly detect and stop non-chunked http requests when the body is too long Based on analysis and code from Bas Verhoeven and from Constantine Verutin.
Nick Mathewson deb2f738 2011-02-18T16:17:22 fix spelling mistake in whatsnew-2.0.txt
Nick Mathewson f6659246 2011-02-15T11:33:40 Correct evhttp_del_accept_socket documentation on whether socket is closed Thanks to Constantine Verutin for pointing this out.
Nick Mathewson 0c9be768 2011-02-13T02:51:27 Merge branch '20_evport_pollhup' into patches-2.0
Nick Mathewson 926f8165 2011-02-13T00:54:21 Clarify event_set_mem_functions doc
Nick Mathewson f7361980 2011-02-08T22:24:06 Fix a type error in our (unused) arc4random_stir()
Sebastian Hahn f663112f 2010-10-14T20:15:04 Fix warnings about AC_LANG_PROGRAM usage Autoconf 2.68 introduced some new warnings that were triggered during autogen.sh. Fix those.
Dave Hart b4f89b60 2011-02-01T01:15:48 Fix test.sh output on solaris Solaris echo -n doesn't omit newlines, but printf omits newlines in more places.
Nick Mathewson c1260b0e 2011-01-31T17:36:49 Do not check for gethostbyname_r versions if we have getaddrinfo
Nick Mathewson 3c8f4e75 2011-01-31T16:44:06 Add compile-time check for AF_UNSPEC==PF_UNSPEC
Nick Mathewson 6092f126 2011-01-31T16:37:27 Fix http unit test on non-windows platforms without getaddrinfo
Nick Mathewson cb921139 2011-01-31T16:32:05 Build on systems without AI_PASSIVE
Nick Mathewson 713c254d 2011-01-24T18:55:10 Try to build correctly on platforms with no IPv6 support
Nick Mathewson 9184563e 2011-01-24T18:29:20 Build correctly on platforms without sockaddr_storage
Nick Mathewson 453317b2 2011-01-24T18:22:32 Fall back to sscanf if we have no other way to implement strtoll
Nick Mathewson 32677036 2011-01-24T17:42:23 Make --enable-gcc-warnings a no-op if not using gcc
Nick Mathewson 0c0ec0be 2011-01-12T20:28:47 Correctly free selectop fields when select_resize fails in select_init
Nick Mathewson 83e805a4 2011-01-07T13:18:09 Handle resize failures in the select backend better.
Jardel Weyrich 3f8d22a1 2010-12-18T02:40:22 Use event_err() only if the failure is truly unrecoverable.
Jardel Weyrich 666b0966 2010-12-18T01:07:27 Detect and handle more allocation failures.
Trond Norbye 0144886e 2011-01-02T10:17:15 Check for POLLERR, POLLHUP and POLLNVAL for Solaris event ports
Nick Mathewson cb8059d2 2011-01-01T21:37:21 Fix compilation on Windows with NDEBUG Dongsheng Song reports that when building on windows with NDEBUG, you run into an attempt to do EVUTIL_ASSERT(x) where x is a bitfield, which turns into _EVUTIL_NIL_CONDITION(x), which takes sizeof(x), which is illegal. This patch fixes _EVUTIL_NIL_CONDITION to work on bitfields too.
Nick Mathewson b42ce4bf 2011-01-01T21:17:31 Fix evport handling of POLLHUP and POLLERR In other backends, they make _all_ events trigger; with evport they previously triggered nothing. Found by Phua Keat Yee.
Nick Mathewson 05f0195d 2010-12-16T12:57:23 Bump version to 2.0.10-stable-dev
Nick Mathewson 5a12d835 2010-12-15T14:31:08 Add changelog for 2.0.10-stable
Nick Mathewson d34d21d9 2010-12-15T14:30:04 Add more acknowledgements to the readme for 2.0.10-stable
Nick Mathewson bffc411e 2010-12-15T14:29:50 Set the version to 2.0.10-stable
Evan Jones b63ab177 2010-12-06T14:17:44 EVUTIL_ASSERT: Use sizeof() to avoid "unused variable" warnings.
Nick Mathewson 18adc3f0 2010-12-09T12:17:58 Add stuff to whatsnew based on reading include changes since August.
Nick Mathewson 57689c44 2010-12-09T12:17:11 Document that the cpu_hint is only used on Windows with IOCP for now
Nick Mathewson bb0d2b4e 2010-12-09T11:47:54 Consistentize tabs
Nick Mathewson 22f4af65 2010-12-09T11:43:12 Remove end-of-line whitespace
Nick Mathewson 74f75758 2010-12-09T11:40:35 tweak readme, whatsnew
Nick Mathewson 7011f9ec 2010-12-07T11:45:14 Fix a signed/unsigned comparison in the last commit
Constantine Verutin d23839fc 2010-12-07T11:43:52 Reject overlong http requests early when Expect:100-continue is set
Evan Jones c0bf63ce 2010-12-02T14:13:33 tests: Use relative includes ("") instead of system includes (<>)
Evan Jones 4f332091 2010-12-02T14:09:52 tests: Use new event2 headers instead of old compatibility headers.
Evan Jones fbe64f21 2010-12-02T10:26:12 Use relative includes instead of system includes consistently.
Evan Jones ef5e65a4 2010-12-02T10:27:06 bufferevent-internal.h: Use the new event2/util.h header, not evutil.h
Nick Mathewson 5beeec9d 2010-12-01T21:28:03 Correctly notify the main thread when activating an event from a subthread
Kelly Brock 2599b2d5 2010-11-30T11:34:26 Minor fix for IOCP shutdown handling fix Call setsockopt() on the actual new socket, not on as->s, which was set to INVALID_SOCKET.
Nick Mathewson 2b0b06d7 2010-11-30T02:19:25 Increment version to 2.0.9-rc-dev
Nick Mathewson ce46db99 2010-11-30T01:21:00 Give the correct date for 2.0.9-rc in the changelog
Nick Mathewson 9ce4cc4e 2010-11-23T11:17:24 Increment version to 2.0.9-rc
Nick Mathewson 79957b89 2010-11-23T11:17:06 Bump VERSION_INFO to 5:0:0
Nick Mathewson 0c54f176 2010-11-23T11:08:30 Changelog and acknowledgments for 2.0.9-rc
Nick Mathewson 13fd242d 2010-11-30T00:53:16 Fix win32 build of http-server.c with unicode enabled
Nick Mathewson 04861d5e 2010-11-30T00:05:54 Correctly detect timeouts during http connects
Nick Mathewson 0faaa395 2010-11-29T22:44:18 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.
Nick Mathewson 29f7623c 2010-11-29T22:14:54 Possible crash fix when freeing an underlying bufferevent of an openssl bufferevent
Nick Mathewson 0c4d5459 2010-11-29T21:56:23 Merge remote branch 'chrisd/http_continue'
Christopher Davis fa9305f8 2010-11-29T18:25:04 Preliminary support for Continue expectation in evhttp.
Nick Mathewson 18d03276 2010-11-29T20:39:09 make http-server example code build on win32
Nick Mathewson ad66dfd0 2010-11-29T20:13:19 Fix http-server.c compilation on freebsd
Nick Mathewson a12839b0 2010-11-29T14:25:33 Merge remote branch 'chrisd/http_fixes2'
Christopher Davis 4feedef9 2010-11-29T07:18:32 Add a few more comments.
Nick Mathewson 026ac5d5 2010-11-26T13:29:56 add http-server to gitignore
Nick Mathewson 4881778c 2010-11-26T13:28:48 Fix a misplaced ) in http_server.c
Nick Mathewson d40aa673 2010-11-26T12:59:02 Merge branch '20_empty_body'
Nick Mathewson 4e794d5d 2010-10-18T13:44:05 Add a basic example of how to write a static HTTP server.
Christopher Davis aab8c38b 2010-11-05T11:17:07 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.
Nick Mathewson 2e5a175b 2010-11-25T23:03:46 Merge remote branch 'github/20_once_fixes'
Kevin Bowling 32390732 2010-11-23T19:40:23 Fix snprintf related failures on IRIX.
Kevin Bowling 1cd45e56 2010-11-23T19:26:34 If not WIN32, include <sys/socket.h> in event2/util.h.
Kevin Bowling c2e5e22c 2010-11-23T14:09:03 xlC doesn't obey C99 comments here. autoconf isn't invoking full C99 mode.
Kevin Bowling c4dc3353 2010-11-23T00:22:01 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.
Kevin Bowling 2e2a3d7b 2010-11-23T19:09:08 Reworked AIX __ss_family workaround to use AC_STRUCT_MEMBER.
Kevin Bowling a3a9f6b2 2010-11-22T20:44:10 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.
Nick Mathewson ec5c5aec 2010-11-23T20:31:28 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.
Nick Mathewson 652024b6 2010-11-23T13:08:07 Remove _event_initialized(); make event_initialized() a function(); make it consistent on windows and non-windows
Nick Mathewson 88be27dc 2010-11-23T12:26:46 Document event_get_assignment
Nick Mathewson e431bcd6 2010-11-23T12:26:34 Note that reentrant calls to libevent from logging cbs may fail badly
Nick Mathewson 7bcace2d 2010-11-22T21:02:34 Fix some irix compilation warnings spotted by Kevin Bowling
Nick Mathewson 150d7d0a 2010-11-22T20:24:03 Merge remote branch 'kev009/master'
Kevin Bowling e8749823 2010-11-22T16:40:31 Fix IRIX build. sa_family collides with a #define in sys/socket.h on IRIX.
Nick Mathewson 26049c2f 2010-11-22T16:24:52 Merge remote branch 'github/20_getaddrinfo_cancel_v2'
Nick Mathewson da1bf528 2010-11-22T16:24:09 Add a stress test for getaddrinfo_cancel
Nick Mathewson 568ac4fd 2010-11-22T15:52:34 Merge remote branches 'github/20_epoll_nochangelist_v4', 'github/20_openssl_closeonfree' and 'github/20_cloexec'
Nick Mathewson ece974fb 2010-11-22T14:13:24 Reorder backends in test.sh to match preference order in event.c
Nick Mathewson aed7e029 2010-11-22T14:10:01 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)".
Nick Mathewson 9531763a 2010-11-14T17:52:16 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
Nick Mathewson 3ab578f8 2010-11-20T01:41:34 Make sure the CLOEXEC flag is set on fds we open for base notification
Nick Mathewson 3a67d0bf 2010-11-19T17:09:30 Resolve an evport bug in the thread/forking test
Nick Mathewson d51b2fc6 2010-11-19T12:14:18 Make evdns_getaddrinfo_cancel threadsafe
Nick Mathewson c7cfbcf4 2010-11-19T12:01:05 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.
Nick Mathewson abf01ed1 2010-11-19T11:33:48 Avoid double-invocation of user callback with EVUTIL_EAI_CANCEL
Nick Mathewson 49418612 2010-11-16T12:55:10 Use the US-English "canceled", not the UK "cancelled".
Nick Mathewson 8faf223a 2010-11-17T00:09:10 Fix a memory leak in evhttp_uri_free.
Nick Mathewson 4f228a1f 2010-11-14T19:52:18 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
Nick Mathewson 057a5146 2010-11-14T19:34:49 Clarify EVLOOP_* documentation to be more precise.
Nick Mathewson 2d5e1bd0 2010-11-14T19:32:13 Do not let EVLOOP_ONCE exit the loop until all deferred callbacks have run
Nick Mathewson 0617a818 2010-11-14T19:25:54 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.
Nick Mathewson 1ac5b230 2010-11-09T15:18:59 Only clear underlying callbacks when the user hasn't reset them.
Nick Mathewson fc7b1b00 2010-11-09T11:43:47 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.
Nick Mathewson 5c8a59e8 2010-11-09T10:19:05 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'
Nick Mathewson a38140be 2010-11-09T10:14:32 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.