http.c


Log

Author Commit Date CI Message
Nick Mathewson 1d6e30e6 2010-11-19T12:35:47 Avoid truncating huge values for content-length
VDm 53c47c2e 2010-08-30T11:08:59 Fix compilation on Visual Studio 2010
Nick Mathewson 906d573b 2010-05-10T19:57:13 Fix compile warning in http.c
Pierre Phaneuf 29d7b328 2010-04-27T22:25:59 Do not abort HTTP requests missing a reason string. Some (arguably broken) HTTP servers do not put the reason message in their status line, which causes evhttp to consider the response invalid. http://sourceforge.net/tracker/?func=detail&aid=2875077&group_id=50884&atid=461322
Niels Provos 01ea0c5c 2010-02-03T16:54:18 make evhttp_send() safe against terminated connections, too
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.
Nick Mathewson 35df59e9 2010-01-04T01:01:54 Correct a debug message in evhttp_parse_request_line The old message reported that evhttp_decode_uri had failed; in fact, strdup had failed. Found by Michael Lenaghan.
Nick Mathewson 6bd85f9d 2009-05-22T16:51:10 Fix compilation warning on win32 with verbose GCC warnings. svn:r1305
Nick Mathewson 5d639d6c 2009-05-15T01:14:08 Fix win32 compilation warnings in 1.4. svn:r1287
Niels Provos 23967f73 2009-04-24T16:08:30 Remove the limit on size of HTTP headers by removing static buffers svn:r1240
Niels Provos 1a518873 2009-04-12T23:00:52 from trunk: improve evhttp_parse_query documentation svn:r1161
Niels Provos c1bd9385 2009-04-11T04:12:46 Fix parsing of queries where the encoded queries contained \r, \n or + svn:r1155
Niels Provos 64fc3c7c 2009-01-16T00:29:27 clean up buffered data on reset; reported by Brian O'Kelley svn:r1016
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 f383ee29 2008-12-19T21:53:23 revert: Fix a memory leak with http connections owned by the server. svn:r966
Niels Provos 3e55a529 2008-12-19T21:41:03 Fix a memory leak with http connections owned by the server. svn:r965
Niels Provos 9dcf1106 2008-12-19T21:34:12 fix a memory leak when reading multi-line headers svn:r964
Niels Provos 0a41d762 2008-11-16T23:26:38 from trunk: Allow setting of local port for evhttp connections to support millions of connections from a single system; from Richard Jones svn:r949
Niels Provos 3ad06489 2008-11-15T05:29:39 from trunk: only bind the socket on connect when a local address has been provided; reported by Ajejo Sanchez svn:r947
Niels Provos 69119a40 2008-09-07T23:26:47 from trunk: do not remove accept-encoding header in make request svn:r939
Niels Provos 48c6e51d 2008-09-04T01:25:18 missed from previous submit; been a long day svn:r935
Niels Provos d2386bce 2008-09-04T01:09:54 Fix a merge problem in which name_from_addr returned pointers to the stack; found by Jiang Hong. svn:r934
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 abe3ac11 2008-07-25T05:23:30 from trunk: do not warn on accept when errno is egain|eintr svn:r926
Niels Provos 4a13b22f 2008-07-12T01:50:11 deal with evbuffer_read() returning -1 on EINTR|EAGAIN; from Adam Langley svn:r906
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 51bd6c0b 2008-06-25T16:06:16 fix warnings for potentially uninitalized variables svn:r880
Niels Provos 6111e150 2008-06-25T16:02:47 fix getnameinfo for windows; snprintf -> evutil_snprintf svn:r878
Niels Provos fb0b274e 2008-06-20T06:55:26 from trunk: do not use SO_REUSEADDR when connecting svn:r855
Niels Provos 17515971 2008-05-15T01:58:32 from trunk: fix connection keep-alive behavior for HTTP/1.0 svn:r824
Niels Provos 52a85138 2008-05-08T05:16:47 expose evhttp_accept_socket() api svn:r787
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
Nick Mathewson aab6b84c 2008-02-26T20:24:52 r14508@tombo: nickm | 2008-02-26 15:24:01 -0500 Backport to 1.4 branch: Patch from Tani Hosokawa: make some functions in http.c threadsafe. Also, note some functions in http.c that still are not threadsafe. svn:r672
Niels Provos 134cbc86 2008-02-26T03:30:43 from trunk: deal correctly with http/1.0 and keep-alive svn:r668
Nick Mathewson 41971a42 2008-02-16T20:51:04 r14214@tombo: nickm | 2008-02-16 15:49:32 -0500 Patch from Scott Lamb: make http content length into a 64-bit value. [Backport to 1.4] svn:r643
Nick Mathewson d453c073 2008-02-16T16:56:47 r14206@tombo: nickm | 2008-02-16 11:56:10 -0500 Fix bug 1894184: add a CRLF after each chunk when sending chunked HTTP data. Original patch from propanbutan. [Backporting to 1.4 branch] svn:r638
Niels Provos 19545583 2007-12-19T06:34:36 from trunk: removed linger from http server socket; reported by Ilya Martynov svn:r605
Niels Provos 108ee5f3 2007-12-19T04:52:28 from trunk: r15171@tombo: nickm | 2007-12-06 12:47:47 -0500 Use GCC attributes (where available) to verify printf type-correctness. Fix some bugs this turned up. svn:r603
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
Nick Mathewson d582000e 2007-12-06T04:35:39 r15167@tombo: nickm | 2007-12-05 23:35:30 -0500 Backport: Apply patch from bug 1841036: set the base of the correct event in evhttp_connection_start_detectclose() svn:r570
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