test/regress_http.c


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.
Niels Provos c1bd9385 2009-04-11T04:12:46 Fix parsing of queries where the encoded queries contained \r, \n or + svn:r1155
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 9ee4990f 2008-07-13T21:07:59 close -> EVUTIL_CLOSESOCKET svn:r909
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 b7fd2ac3 2008-06-25T16:00:15 fix gethostbyname on windows; close() -> EVUTIL_CLOSESOCKET() svn:r877
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 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 ef12a5a1 2007-11-29T06:09:30 from trunk: always generate Date and Content-Length headers for HTTP/1.1 svn:r565
Niels Provos 6b4342db 2007-11-12T02:37:25 copy trunk to 1.4 svn:r512