]>
granicus.if.org Git - libevent/log
Nick Mathewson [Tue, 8 Mar 2011 03:59:19 +0000 (22:59 -0500)]
Disable lazy gettimeofday/clock_gettime comparison for now
Nick Mathewson [Tue, 8 Mar 2011 03:45:10 +0000 (22:45 -0500)]
Merge branch '20_timescale' into patches-2.0
Nick Mathewson [Tue, 8 Mar 2011 02:55:47 +0000 (21:55 -0500)]
Followup for Tomash Brechko's http patch
This patch makes bufferevent_disable_hard() non-public, and
adds a comment about what it's for and why it's used.
Tomash Brechko [Thu, 24 Feb 2011 09:30:40 +0000 (12:30 +0300)]
Workaround libevent bug
https://sourceforge.net/tracker/index.php?func=detail&aid=
3078187 &group_id=50884&atid=461324
The problem is that bufferevent_disable() doesn't disable EV_WRITE
when 'connecting' flag is set. However from evhttp_connection_reset()
we want to disable EV_WRITE for sure (we are closing the socket next).
So we add bufferevent_disable_hard(), which acts like
bufferevent_disable(), but resets 'connecting' flag before the call to
the actual handler.
TODO: bufferevent_disable_hard() shouldn't be public, remove it from
event2/bufferevent.h.
Nick Mathewson [Thu, 3 Mar 2011 20:34:22 +0000 (15:34 -0500)]
Have event_base_gettimeofday_cached() always return wall-clock time
Based on code by Dave Hart
Dave Hart [Thu, 3 Mar 2011 17:57:17 +0000 (12:57 -0500)]
Make --no-libevent-install apply to event1 headers too
Dave Hart [Fri, 25 Feb 2011 15:35:12 +0000 (10:35 -0500)]
Make --no-libevent-install apply to headers too
Sebastian Hahn [Wed, 23 Feb 2011 08:19:08 +0000 (09:19 +0100)]
Continue AM_CFLAGS to AM_CPPFLAGS correction
9c469db300e1b270a93c6b04c1709ac0f7751136 had started with the conversion
but left out another instance of incorrectly used AM_CFLAGS.
Dave Hart provided the suggestion for this fix.
Nick Mathewson [Tue, 22 Feb 2011 23:53:55 +0000 (18:53 -0500)]
Merge branch '20_uri_nonconformant' into patches-2.0
Nick Mathewson [Tue, 22 Feb 2011 21:20:42 +0000 (16:20 -0500)]
Make -ffunction-sections off-by-default in 2.0.x
I don't see how this can burn anybody, but I don't want to take
chances: new build options are something that should be done in an
alpha. To turn -ffunction-sections on, pass
--enable-function-sections to configure.
Nick Mathewson [Tue, 22 Feb 2011 21:14:16 +0000 (16:14 -0500)]
Remove nonfunctional enable_libevent_(install|regress)_def variables
Nick Mathewson [Tue, 22 Feb 2011 21:13:49 +0000 (16:13 -0500)]
Use $(), not @@, for LIBEVENT_GC_SECTIONS
Nick Mathewson [Tue, 22 Feb 2011 05:34:49 +0000 (00:34 -0500)]
Be explicit about how long event loops run in event.h documentation
Nick Mathewson [Tue, 22 Feb 2011 05:31:56 +0000 (00:31 -0500)]
Use %s with printf in test.sh
Dave Hart [Sun, 13 Feb 2011 07:27:42 +0000 (02:27 -0500)]
Correct an AM_CFLAGS to an AM_CPPFLAGS in test/Makefile.am
Dave Hart [Sun, 13 Feb 2011 07:05:04 +0000 (02:05 -0500)]
Add configure options to disable installation, regression tests
The main reason for disabling installation is if you're building
libevent as a subpackage for embedding: you want to have your main
package's "make all" build libevent, but you don't want your main
package's "make install" to install libevent.
Harlan Stenn [Sun, 13 Feb 2011 07:00:10 +0000 (02:00 -0500)]
Add -D_OSF_SOURCE to fix hpux builds
Dave Hart [Sun, 13 Feb 2011 06:50:40 +0000 (01:50 -0500)]
Use the gcc -ffunction-segments feature to allow gc when linking with static libevent
Harlan Stenn [Sun, 13 Feb 2011 06:42:58 +0000 (01:42 -0500)]
Check for getservbyname even if not on win32.
Harlan Stenn [Sun, 13 Feb 2011 06:39:10 +0000 (01:39 -0500)]
Fix autoconf bracket issues; make check for getaddrinfo include netdb.h
Harlan Stenn [Sun, 13 Feb 2011 06:34:40 +0000 (01:34 -0500)]
Skip check for zlib if we have no zlib.h
Harlan Stenn [Sun, 13 Feb 2011 06:30:37 +0000 (01:30 -0500)]
Make test-eof fail with a timeout if we never get an eof.
Previously, it would just wait forever.
Nick Mathewson [Sun, 13 Feb 2011 06:29:54 +0000 (01:29 -0500)]
FIX: comment internal headers used in sample code.
Nick Mathewson [Sun, 13 Feb 2011 06:27:06 +0000 (01:27 -0500)]
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 [Sun, 13 Feb 2011 06:25:33 +0000 (01:25 -0500)]
Include util-internal.h as needed to build on platforms with no sockaddr_storage
Harlan Stenn [Sun, 13 Feb 2011 06:22:25 +0000 (01:22 -0500)]
Include arpa/inet.h as needed on HPUX
Nick Mathewson [Tue, 22 Feb 2011 04:25:13 +0000 (23:25 -0500)]
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 [Fri, 18 Feb 2011 21:17:22 +0000 (16:17 -0500)]
fix spelling mistake in whatsnew-2.0.txt
Nick Mathewson [Tue, 15 Feb 2011 16:33:40 +0000 (11:33 -0500)]
Correct evhttp_del_accept_socket documentation on whether socket is closed
Thanks to Constantine Verutin for pointing this out.
Nick Mathewson [Sun, 13 Feb 2011 07:51:27 +0000 (02:51 -0500)]
Merge branch '20_evport_pollhup' into patches-2.0
Nick Mathewson [Sun, 13 Feb 2011 05:54:21 +0000 (00:54 -0500)]
Clarify event_set_mem_functions doc
Nick Mathewson [Sun, 13 Feb 2011 05:41:22 +0000 (00:41 -0500)]
Make URI parser able to tolerate nonconformant URIs.
If the EVHTTP_URI_NONCONFORMANT flag is passed in (which it is when
parsing URIs we get over the wire), then we relax our checks a lot.
Specifically, we do nothing to check for correct characters in the
path, query, and fragment parts of such a URI.
We could do much more here: we could relax our hostname requirements,
deal with spaces differently/better, trap some errors but not others,
etc. But this should solve the worst user-agent compatibility issues
for now; the other issues can wait for a later release.
Nick Mathewson [Wed, 9 Feb 2011 03:24:06 +0000 (22:24 -0500)]
Fix a type error in our (unused) arc4random_stir()
Sebastian Hahn [Thu, 14 Oct 2010 18:15:04 +0000 (20:15 +0200)]
Fix warnings about AC_LANG_PROGRAM usage
Autoconf 2.68 introduced some new warnings that were triggered during
autogen.sh. Fix those.
Dave Hart [Tue, 1 Feb 2011 06:15:48 +0000 (01:15 -0500)]
Fix test.sh output on solaris
Solaris echo -n doesn't omit newlines, but printf omits newlines in
more places.
Nick Mathewson [Mon, 31 Jan 2011 22:36:49 +0000 (17:36 -0500)]
Do not check for gethostbyname_r versions if we have getaddrinfo
Nick Mathewson [Mon, 31 Jan 2011 21:44:06 +0000 (16:44 -0500)]
Add compile-time check for AF_UNSPEC==PF_UNSPEC
Nick Mathewson [Mon, 31 Jan 2011 21:37:27 +0000 (16:37 -0500)]
Fix http unit test on non-windows platforms without getaddrinfo
Nick Mathewson [Mon, 31 Jan 2011 21:32:05 +0000 (16:32 -0500)]
Build on systems without AI_PASSIVE
Nick Mathewson [Mon, 24 Jan 2011 23:55:10 +0000 (18:55 -0500)]
Try to build correctly on platforms with no IPv6 support
Nick Mathewson [Mon, 24 Jan 2011 23:29:20 +0000 (18:29 -0500)]
Build correctly on platforms without sockaddr_storage
Nick Mathewson [Mon, 24 Jan 2011 23:22:32 +0000 (18:22 -0500)]
Fall back to sscanf if we have no other way to implement strtoll
Nick Mathewson [Mon, 24 Jan 2011 22:42:23 +0000 (17:42 -0500)]
Make --enable-gcc-warnings a no-op if not using gcc
Nick Mathewson [Thu, 13 Jan 2011 01:28:47 +0000 (20:28 -0500)]
Correctly free selectop fields when select_resize fails in select_init
Nick Mathewson [Fri, 7 Jan 2011 18:18:09 +0000 (13:18 -0500)]
Handle resize failures in the select backend better.
Jardel Weyrich [Sat, 18 Dec 2010 04:40:22 +0000 (02:40 -0200)]
Use event_err() only if the failure is truly unrecoverable.
Jardel Weyrich [Sat, 18 Dec 2010 03:07:27 +0000 (01:07 -0200)]
Detect and handle more allocation failures.
Trond Norbye [Sun, 2 Jan 2011 09:17:15 +0000 (10:17 +0100)]
Check for POLLERR, POLLHUP and POLLNVAL for Solaris event ports
Nick Mathewson [Sun, 2 Jan 2011 02:37:21 +0000 (21:37 -0500)]
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 [Sun, 2 Jan 2011 02:17:31 +0000 (21:17 -0500)]
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 [Thu, 16 Dec 2010 17:57:23 +0000 (12:57 -0500)]
Bump version to 2.0.10-stable-dev
Nick Mathewson [Wed, 15 Dec 2010 19:31:08 +0000 (14:31 -0500)]
Add changelog 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
Nick Mathewson [Wed, 15 Dec 2010 19:29:50 +0000 (14:29 -0500)]
Set the version to 2.0.10-stable
Evan Jones [Mon, 6 Dec 2010 19:17:44 +0000 (14:17 -0500)]
EVUTIL_ASSERT: Use sizeof() to avoid "unused variable" warnings.
Nick Mathewson [Thu, 9 Dec 2010 17:17:58 +0000 (12:17 -0500)]
Add stuff to whatsnew based on reading include changes since August.
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
Nick Mathewson [Thu, 9 Dec 2010 16:47:54 +0000 (11:47 -0500)]
Consistentize tabs
Nick Mathewson [Thu, 9 Dec 2010 16:43:12 +0000 (11:43 -0500)]
Remove end-of-line whitespace
Nick Mathewson [Thu, 9 Dec 2010 16:40:35 +0000 (11:40 -0500)]
tweak readme, whatsnew
Nick Mathewson [Tue, 7 Dec 2010 16:45:14 +0000 (11:45 -0500)]
Fix a signed/unsigned comparison in the last commit
Constantine Verutin [Tue, 7 Dec 2010 16:43:52 +0000 (11:43 -0500)]
Reject overlong http requests early when Expect:100-continue is set
Evan Jones [Thu, 2 Dec 2010 19:13:33 +0000 (14:13 -0500)]
tests: Use relative includes ("") instead of system includes (<>)
Evan Jones [Thu, 2 Dec 2010 19:09:52 +0000 (14:09 -0500)]
tests: Use new event2 headers instead of old compatibility headers.
Evan Jones [Thu, 2 Dec 2010 15:26:12 +0000 (10:26 -0500)]
Use relative includes instead of system includes consistently.
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
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
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.
Nick Mathewson [Tue, 30 Nov 2010 07:19:25 +0000 (02:19 -0500)]
Increment version to 2.0.9-rc-dev
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
Nick Mathewson [Tue, 23 Nov 2010 16:17:24 +0000 (11:17 -0500)]
Increment version to 2.0.9-rc
Nick Mathewson [Tue, 23 Nov 2010 16:17:06 +0000 (11:17 -0500)]
Bump VERSION_INFO to 5:0:0
Nick Mathewson [Tue, 23 Nov 2010 16:08:30 +0000 (11:08 -0500)]
Changelog and acknowledgments for 2.0.9-rc
Nick Mathewson [Tue, 30 Nov 2010 05:53:16 +0000 (00:53 -0500)]
Fix win32 build of http-server.c with unicode enabled
Nick Mathewson [Tue, 30 Nov 2010 05:05:54 +0000 (00:05 -0500)]
Correctly detect timeouts during http connects
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 .
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
Nick Mathewson [Tue, 30 Nov 2010 02:56:23 +0000 (21:56 -0500)]
Merge remote branch 'chrisd/http_continue'
Christopher Davis [Tue, 30 Nov 2010 02:25:04 +0000 (18:25 -0800)]
Preliminary support for Continue expectation in evhttp.
Nick Mathewson [Tue, 30 Nov 2010 01:39:09 +0000 (20:39 -0500)]
make http-server example code build on win32
Nick Mathewson [Tue, 30 Nov 2010 01:13:19 +0000 (20:13 -0500)]
Fix http-server.c compilation on freebsd
Nick Mathewson [Mon, 29 Nov 2010 19:25:33 +0000 (14:25 -0500)]
Merge remote branch 'chrisd/http_fixes2'
Christopher Davis [Mon, 29 Nov 2010 15:18:32 +0000 (07:18 -0800)]
Add a few more comments.
Nick Mathewson [Fri, 26 Nov 2010 18:29:56 +0000 (13:29 -0500)]
add http-server to gitignore
Nick Mathewson [Fri, 26 Nov 2010 18:28:48 +0000 (13:28 -0500)]
Fix a misplaced ) in http_server.c
Nick Mathewson [Fri, 26 Nov 2010 17:59:02 +0000 (12:59 -0500)]
Merge branch '20_empty_body'
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.
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.
Nick Mathewson [Fri, 26 Nov 2010 04:03:46 +0000 (23:03 -0500)]
Merge remote branch 'github/20_once_fixes'
Kevin Bowling [Wed, 24 Nov 2010 02:40:23 +0000 (19:40 -0700)]
Fix snprintf related failures on IRIX.
Kevin Bowling [Wed, 24 Nov 2010 02:26:34 +0000 (19:26 -0700)]
If not WIN32, include <sys/socket.h> in event2/util.h.
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.
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.
Kevin Bowling [Wed, 24 Nov 2010 02:09:08 +0000 (19:09 -0700)]
Reworked AIX __ss_family workaround to use AC_STRUCT_MEMBER.
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.
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.
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
Nick Mathewson [Tue, 23 Nov 2010 17:26:46 +0000 (12:26 -0500)]
Document event_get_assignment
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
Nick Mathewson [Tue, 23 Nov 2010 02:02:34 +0000 (21:02 -0500)]
Fix some irix compilation warnings spotted by Kevin Bowling