test


Log

Author Commit Date CI Message
Niels Provos 5c8b446e 2010-02-03T14: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.
Pavel Plesov 4fd2dd9d 2010-01-11T18: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.
Nicholas Marriott b04cc60f 2009-11-23T12: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.
Nick Mathewson f76b599d 2009-11-16T19:21:25 Fix 1.4 compilation on msvc, and add a couple of minimal (not-quite-right) nmakefiles. svn:r1534
Nick Mathewson 9e652610 2009-07-23T00:24:28 A more hackish (but more backported) fix for the intptr vs uintptr fix from trunk. svn:r1374
Nick Mathewson 8155ed0c 2009-07-21T19:01:07 #ifdef out some callbacks in regress.c that windows doesn't use. svn:r1371
Nick Mathewson 267472dc 2009-07-21T17:57:31 Do a quick-and-dirty hack to fix a gcc warning on 1.4 with a 64-bit arch svn:r1368
Nick Mathewson a276fa51 2009-05-12T18:27:34 Fix warnings in compilation of regress.c. svn:r1281
Niels Provos c1bd9385 2009-04-11T04:12:46 Fix parsing of queries where the encoded queries contained \r, \n or + svn:r1155
Niels Provos f06b29b9 2009-03-12T17:03:21 off-by-one error in epoll_recalc; reported by Victor Goya svn:r1124
Niels Provos 092baefa 2009-01-22T06:26:32 from trunk: fix signal processing for non-kqueue backends; when a signal callback delivers a signal; from Alexander Drozdov svn:r1036
Niels Provos 636e74a7 2009-01-22T02:49:57 from trunk: rename sys/signal.h to signal.h; configure m4 macro dir; this assist with compilation on Haiku svn:r1034
Niels Provos cad8703a 2008-12-19T22:29:41 Fix a memory leak by not running explicit close detection for server connections. svn:r967
Niels Provos 2821152f 2008-08-19T11: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
Niels Provos 7c7ab279 2008-07-25T00:53:17 from trunk: fix a problem with epoll() and reinit; repoted by Alexander Drozdov svn:r919
Niels Provos 9ee4990f 2008-07-13T21:07:59 close -> EVUTIL_CLOSESOCKET svn:r909
Niels Provos 0e535d2f 2008-07-11T15: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
Niels Provos 459c78a2 2008-07-11T15:17:35 from trunk: fix a bug where deleting signals with kqueue would delete subsequent adds svn:r900
Niels Provos 3add69df 2008-07-02T04:28:12 from trunk: reject negative content-length headers svn:r895
Niels Provos e7d5dfda 2008-06-30T01:55:13 from trunk: support multi-line HTTP headers; based on a patch from Moshe Litvin svn:r893
Niels Provos efb50876 2008-06-30T01:04:21 from trunk: correct handling of trailing headers in chunked replies; from Scott Lamb svn:r892
Niels Provos 33bb64c1 2008-06-25T20:52:29 fix support of fixed-sized entries in event_rpcgen svn:r885
Niels Provos b7fd2ac3 2008-06-25T16:00:15 fix gethostbyname on windows; close() -> EVUTIL_CLOSESOCKET() svn:r877
Niels Provos 1efa70ab 2008-06-25T15:46:33 make it compile on windows; gettimeofday -> evutil_gettimeofday; snprintf -> evutil_snprintf svn:r876
Nick Mathewson 921693c4 2008-06-14T17: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
Niels Provos 38e97b14 2008-05-16T01:58:05 from trunk: Fix use of freed memory in event_reinit; pointed out by Peter Postma svn:r835
Nick Mathewson f47e7dff 2008-05-07T20:11:56 r19632@catbus: nickm | 2008-05-07 16:07:31 -0400 Fix bug 1958901: stop overriding CPPFLAGS in test directory. svn:r782
Niels Provos 0d43f0df 2008-05-04T22:28:22 fix evhttp_bind_socket() so that multiple sockets can be bound by the same http server. svn:r770
Niels Provos f2b8f9b0 2008-04-26T01:05:07 fromtrunk: fix a bug in buffrevent read water marks and add a test for them svn:r732
Niels Provos 29e9b1d2 2008-02-17T01:16:55 from trunk: allow regression code to be build even without Python installed svn:r646
Nick Mathewson 7eb990d5 2008-02-16T20: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
Niels Provos d5aeeca0 2008-01-26T07:34:47 from trunk: remove pending timeouts on event_base_free svn:r628
Nick Mathewson 149c5b43 2007-12-31T20:46:29 r15763@tombo: nickm | 2007-12-31 15:46:03 -0500 Make generated rpc files build-depend on event_rpcgen. svn:r625
Niels Provos 3368cc79 2007-12-18T03: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
Niels Provos 5bb67a80 2007-12-15T02:55:59 from trunk: support for 32-bit tag numbers in rpc structures svn:r593
Niels Provos d5153cef 2007-12-14T07:12:35 from trunk: forgot to make new member optional svn:r591
Niels Provos 6d5b846c 2007-12-13T06:44:40 from trunk: pull setters/getters out of RPC structures to reduce their memory footprint svn:r589
Niels Provos eecd6932 2007-12-12T06:26:07 from trunk: Patch from Scott Lamb: Implement event_{base_}loopbreak. Includes documentation and tests. From sf.net Feature Request 1826546. svn:r584
Niels Provos ef12a5a1 2007-11-29T06:09:30 from trunk: always generate Date and Content-Length headers for HTTP/1.1 svn:r565
Niels Provos bcd263fb 2007-11-29T02:53:19 from trunk: a bug in the regression test of event_reinit caused epoll to fail svn:r561
Niels Provos 7717cec7 2007-11-27T06:15:36 from trunk: provide event_reinit() to reinitialized an event_base after fork - necessary for epoll/kqueue svn:r557
Nick Mathewson 5ff1fd7a 2007-11-25T17:15:39 r14945@tombo: nickm | 2007-11-25 12:13:05 -0500 Make kqueue pass more unit tests. (Backport) svn:r545
Nick Mathewson 6a2ad8d2 2007-11-22T16: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
Niels Provos a060b24c 2007-11-14T17:53:43 from trunk: provide event_base_new() without setting current_base global svn:r530
Niels Provos 3d14e100 2007-11-12T05:34:50 srcdir for verify; from Christopher Layne svn:r517
Niels Provos 6b4342db 2007-11-12T02:37:25 copy trunk to 1.4 svn:r512