36 Commits

Author SHA1 Message Date
Nick Mathewson
5d639d6c20 Fix win32 compilation warnings in 1.4.
svn:r1287
2009-05-15 01:14:08 +00:00
Niels Provos
23967f73a2 Remove the limit on size of HTTP headers by removing static buffers
svn:r1240
2009-04-24 16:08:30 +00:00
Niels Provos
1a51887386 from trunk: improve evhttp_parse_query documentation
svn:r1161
2009-04-12 23:00:52 +00:00
Niels Provos
c1bd938562 Fix parsing of queries where the encoded queries contained \r, \n or +
svn:r1155
2009-04-11 04:12:46 +00:00
Niels Provos
64fc3c7c30 clean up buffered data on reset; reported by Brian O'Kelley
svn:r1016
2009-01-16 00:29:27 +00:00
Niels Provos
cad8703a2a Fix a memory leak by not running explicit close detection for server connections.
svn:r967
2008-12-19 22:29:41 +00:00
Niels Provos
f383ee29d9 revert: Fix a memory leak with http connections owned by the server.
svn:r966
2008-12-19 21:53:23 +00:00
Niels Provos
3e55a52926 Fix a memory leak with http connections owned by the server.
svn:r965
2008-12-19 21:41:03 +00:00
Niels Provos
9dcf11060a fix a memory leak when reading multi-line headers
svn:r964
2008-12-19 21:34:12 +00:00
Niels Provos
0a41d762ec from trunk: Allow setting of local port for evhttp connections to support millions of connections from a single system; from Richard Jones
svn:r949
2008-11-16 23:26:38 +00:00
Niels Provos
3ad06489ee from trunk: only bind the socket on connect when a local address has been provided; reported by Ajejo Sanchez
svn:r947
2008-11-15 05:29:39 +00:00
Niels Provos
69119a402e from trunk: do not remove accept-encoding header in make request
svn:r939
2008-09-07 23:26:47 +00:00
Niels Provos
48c6e51db2 missed from previous submit; been a long day
svn:r935
2008-09-04 01:25:18 +00:00
Niels Provos
d2386bce75 Fix a merge problem in which name_from_addr returned pointers to the stack; found by Jiang Hong.
svn:r934
2008-09-04 01:09:54 +00:00
Niels Provos
2821152f7f from trunk: Fix a bug where headers arriving in multiple packets were not parsed; fix from Jiang Hong; test by me.
svn:r929
2008-08-19 11:38:32 +00:00
Niels Provos
abe3ac118c from trunk: do not warn on accept when errno is egain|eintr
svn:r926
2008-07-25 05:23:30 +00:00
Niels Provos
4a13b22f00 deal with evbuffer_read() returning -1 on EINTR|EAGAIN; from Adam Langley
svn:r906
2008-07-12 01:50:11 +00:00
Niels Provos
3add69df67 from trunk: reject negative content-length headers
svn:r895
2008-07-02 04:28:12 +00:00
Niels Provos
e7d5dfda49 from trunk: support multi-line HTTP headers; based on a patch from Moshe Litvin
svn:r893
2008-06-30 01:55:13 +00:00
Niels Provos
efb50876fd from trunk: correct handling of trailing headers in chunked replies; from Scott Lamb
svn:r892
2008-06-30 01:04:21 +00:00
Niels Provos
51bd6c0b24 fix warnings for potentially uninitalized variables
svn:r880
2008-06-25 16:06:16 +00:00
Niels Provos
6111e150a2 fix getnameinfo for windows; snprintf -> evutil_snprintf
svn:r878
2008-06-25 16:02:47 +00:00
Niels Provos
fb0b274e97 from trunk: do not use SO_REUSEADDR when connecting
svn:r855
2008-06-20 06:55:26 +00:00
Niels Provos
17515971a0 from trunk: fix connection keep-alive behavior for HTTP/1.0
svn:r824
2008-05-15 01:58:32 +00:00
Niels Provos
52a851389f expose evhttp_accept_socket() api
svn:r787
2008-05-08 05:16:47 +00:00
Niels Provos
0d43f0dfc5 fix evhttp_bind_socket() so that multiple sockets can be bound by the same http server.
svn:r770
2008-05-04 22:28:22 +00:00
Nick Mathewson
aab6b84cc2 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
2008-02-26 20:24:52 +00:00
Niels Provos
134cbc86c4 from trunk: deal correctly with http/1.0 and keep-alive
svn:r668
2008-02-26 03:30:43 +00:00
Nick Mathewson
41971a4283 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
2008-02-16 20:51:04 +00:00
Nick Mathewson
d453c07387 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
2008-02-16 16:56:47 +00:00
Niels Provos
195455832a from trunk: removed linger from http server socket; reported by Ilya Martynov
svn:r605
2007-12-19 06:34:36 +00:00
Niels Provos
108ee5f3a6 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
2007-12-19 04:52:28 +00:00
Niels Provos
3368cc7922 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
2007-12-18 03:50:04 +00:00
Nick Mathewson
d582000e37 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
2007-12-06 04:35:39 +00:00
Niels Provos
ef12a5a15a from trunk: always generate Date and Content-Length headers for HTTP/1.1
svn:r565
2007-11-29 06:09:30 +00:00
Niels Provos
6b4342db67 copy trunk to 1.4
svn:r512
2007-11-12 02:37:25 +00:00