kc3-lang/libevent/test

Branch :


Log

Author Commit Date CI Message
5c8b446e 2010-02-03 14:34:56 do not fail while sending on http connections the client closed. when sending chunked requests via multiple calls to evhttp_send_reply_chunk, the client may close the connection before the server is done sending. this used to cause a crash. we introduce a new function evhttp_request_get_connection() that allows the server to determine if the request is still associated with a connection. If it's not, evhttp_request_free() needs to be called explicitly or the user can call evhttp_send_reply_end() which just frees the request, too.
4fd2dd9d 2010-01-11 18:52:54 Do not send an HTTP error when we've already closed or responded. Previously, we'd issue an HTTP/1.1 400 Bad Request" response on every connection close, event if sever sent response already. This patch changes the behavior, so we only issue the response on close when the connection state is not DISCONNECTED, and so we set the state to DISCONNECTED when the connection closes. Includes a regression test; fixes sourceforge bug 2909909.
b04cc60f 2009-11-23 12:55:50 Backport evbuffer_readln(). This is necessary because it is not actually possible to use evbuffer_readline() safely: it will treat "A\r\n" as 'A' EOL if it reads it all at once, and as 'A' EOL EOL if there is a delay between reading the \r and the \n. Nicholas Marriott's comments on this patch: Gilles is too busy so I've had a go at this, please see the diff below. Rather than try to backport directly from 2.0 where the evbuffer code is quite different, I've backported the _readln function from when it was initially added in buffer.c r550. I can't see any relevant bug fixes after this point so the function is pretty much just copied in directly from that revision.
f76b599d 2009-11-16 19:21:25 Fix 1.4 compilation on msvc, and add a couple of minimal (not-quite-right) nmakefiles. svn:r1534
9e652610 2009-07-23 00:24:28 A more hackish (but more backported) fix for the intptr vs uintptr fix from trunk. svn:r1374
8155ed0c 2009-07-21 19:01:07 #ifdef out some callbacks in regress.c that windows doesn't use. svn:r1371
267472dc 2009-07-21 17:57:31 Do a quick-and-dirty hack to fix a gcc warning on 1.4 with a 64-bit arch svn:r1368
a276fa51 2009-05-12 18:27:34 Fix warnings in compilation of regress.c. svn:r1281
c1bd9385 2009-04-11 04:12:46 Fix parsing of queries where the encoded queries contained \r, \n or + svn:r1155
f06b29b9 2009-03-12 17:03:21 off-by-one error in epoll_recalc; reported by Victor Goya svn:r1124
092baefa 2009-01-22 06:26:32 from trunk: fix signal processing for non-kqueue backends; when a signal callback delivers a signal; from Alexander Drozdov svn:r1036
636e74a7 2009-01-22 02:49:57 from trunk: rename sys/signal.h to signal.h; configure m4 macro dir; this assist with compilation on Haiku svn:r1034
cad8703a 2008-12-19 22:29:41 Fix a memory leak by not running explicit close detection for server connections. svn:r967
2821152f 2008-08-19 11:38:32 from trunk: Fix a bug where headers arriving in multiple packets were not parsed; fix from Jiang Hong; test by me. svn:r929
7c7ab279 2008-07-25 00:53:17 from trunk: fix a problem with epoll() and reinit; repoted by Alexander Drozdov svn:r919
9ee4990f 2008-07-13 21:07:59 close -> EVUTIL_CLOSESOCKET svn:r909
0e535d2f 2008-07-11 15:59:29 from trunk: support multiple events listening on the same signal; make signals regular events that go on the same event queue svn:r902
459c78a2 2008-07-11 15:17:35 from trunk: fix a bug where deleting signals with kqueue would delete subsequent adds svn:r900
3add69df 2008-07-02 04:28:12 from trunk: reject negative content-length headers svn:r895
e7d5dfda 2008-06-30 01:55:13 from trunk: support multi-line HTTP headers; based on a patch from Moshe Litvin svn:r893
efb50876 2008-06-30 01:04:21 from trunk: correct handling of trailing headers in chunked replies; from Scott Lamb svn:r892
33bb64c1 2008-06-25 20:52:29 fix support of fixed-sized entries in event_rpcgen svn:r885
b7fd2ac3 2008-06-25 16:00:15 fix gethostbyname on windows; close() -> EVUTIL_CLOSESOCKET() svn:r877
1efa70ab 2008-06-25 15:46:33 make it compile on windows; gettimeofday -> evutil_gettimeofday; snprintf -> evutil_snprintf svn:r876
921693c4 2008-06-14 17:42:05 Rename INPUT and OUTPUT to EVRPC_INPUT and EVRPC_OUTPUT, but keep the INPUT/OUTPUT aliases on non-win32 platforms to maintain backwards compatibility. svn:r851
38e97b14 2008-05-16 01:58:05 from trunk: Fix use of freed memory in event_reinit; pointed out by Peter Postma svn:r835
f47e7dff 2008-05-07 20:11:56 r19632@catbus: nickm | 2008-05-07 16:07:31 -0400 Fix bug 1958901: stop overriding CPPFLAGS in test directory. svn:r782
0d43f0df 2008-05-04 22:28:22 fix evhttp_bind_socket() so that multiple sockets can be bound by the same http server. svn:r770
f2b8f9b0 2008-04-26 01:05:07 fromtrunk: fix a bug in buffrevent read water marks and add a test for them svn:r732
29e9b1d2 2008-02-17 01:16:55 from trunk: allow regression code to be build even without Python installed svn:r646
7eb990d5 2008-02-16 20:50:49 r14212@tombo: nickm | 2008-02-16 15:29:17 -0500 Add new evutil_strtoll() function so we can apply 64-bit content-length patch from Scott Lamb in a portable way. [Backport to 1.4] svn:r642
d5aeeca0 2008-01-26 07:34:47 from trunk: remove pending timeouts on event_base_free svn:r628
149c5b43 2007-12-31 20:46:29 r15763@tombo: nickm | 2007-12-31 15:46:03 -0500 Make generated rpc files build-depend on event_rpcgen. svn:r625
3368cc79 2007-12-18 03:50:04 from trunk: r16733@catbus: nickm | 2007-11-26 14:18:25 -0500 Add an --enable-gcc-warnings option (lifted from Tor) to the configure script. When provided, and when we are using GCC, we enable a bunch of extra GCC warnings in the compiler. Also, make the code all build happily with these warnings. svn:r601
5bb67a80 2007-12-15 02:55:59 from trunk: support for 32-bit tag numbers in rpc structures svn:r593
d5153cef 2007-12-14 07:12:35 from trunk: forgot to make new member optional svn:r591
6d5b846c 2007-12-13 06:44:40 from trunk: pull setters/getters out of RPC structures to reduce their memory footprint svn:r589
eecd6932 2007-12-12 06:26:07 from trunk: Patch from Scott Lamb: Implement event_{base_}loopbreak. Includes documentation and tests. From sf.net Feature Request 1826546. svn:r584
ef12a5a1 2007-11-29 06:09:30 from trunk: always generate Date and Content-Length headers for HTTP/1.1 svn:r565
bcd263fb 2007-11-29 02:53:19 from trunk: a bug in the regression test of event_reinit caused epoll to fail svn:r561
7717cec7 2007-11-27 06:15:36 from trunk: provide event_reinit() to reinitialized an event_base after fork - necessary for epoll/kqueue svn:r557
5ff1fd7a 2007-11-25 17:15:39 r14945@tombo: nickm | 2007-11-25 12:13:05 -0500 Make kqueue pass more unit tests. (Backport) svn:r545
6a2ad8d2 2007-11-22 16:41:59 r14936@tombo: nickm | 2007-11-22 11:41:16 -0500 [Backport to 1.4 branch] Always set test_ok to zero after finishing a test, and before starting one. This turns up some failures we had been missing. svn:r538
a060b24c 2007-11-14 17:53:43 from trunk: provide event_base_new() without setting current_base global svn:r530
3d14e100 2007-11-12 05:34:50 srcdir for verify; from Christopher Layne svn:r517
6b4342db 2007-11-12 02:37:25 copy trunk to 1.4 svn:r512