240 Commits

Author SHA1 Message Date
Nick Mathewson
d47907a730 r14213@tombo: nickm | 2008-02-16 15:48:07 -0500
Patch from Scott Lamb: make http content length into a 64-bit value.


svn:r641
2008-02-16 20:50:02 +00:00
Nick Mathewson
807ab182d0 r14211@tombo: nickm | 2008-02-16 15:28:54 -0500
Add new evutil_strtoll() function so we can apply 64-bit content-length patch from Scott Lamb in a portable way.


svn:r640
2008-02-16 20:49:47 +00:00
Nick Mathewson
677a95864b r14205@tombo: nickm | 2008-02-16 11:55:57 -0500
Fix bug 1894184: add a CRLF after each chunk when sending chunked HTTP data.  Original patch from propanbutan.


svn:r637
2008-02-16 16:56:34 +00:00
Niels Provos
8ab618916f event_base_get_method; from Springande Ulv
svn:r635
2008-02-16 06:09:39 +00:00
Niels Provos
f38aec8bb7 devpoll and evport need reinit; tested by W.C.A. Wijngaards
svn:r633
2008-02-12 06:01:46 +00:00
Niels Provos
6baff52296 EAGAIN check for event ports; from Wijngaards
svn:r629
2008-02-06 16:14:42 +00:00
Niels Provos
8c66d4e289 remove pending timeouts on event_base_free
svn:r627
2008-01-26 07:29:57 +00:00
Niels Provos
2460aa5939 allow hooks to get access to the connection object
svn:r623
2007-12-31 19:33:30 +00:00
Niels Provos
5a5609c753 allow association of meta data with RPC requests for hook processing
svn:r622
2007-12-29 22:45:54 +00:00
Niels Provos
955c6abf53 pausing an rpc via a hook needs to deal with the fact that http callbacks free the request after they return; provide a way for a callback to take ownership of the request structure; the user then needs to explicitly free it.
svn:r620
2007-12-28 00:36:47 +00:00
Niels Provos
819d4a33d7 allow hooks to pause RPC processing; this will allow hooks to do meaningful work before resuming the
RPC processing; this is not backwards compatible.


svn:r617
2007-12-27 23:17:24 +00:00
Niels Provos
7e3a7af7d0 support string arrays in event_rpcgen
svn:r613
2007-12-24 23:59:41 +00:00
Niels Provos
03589ccb12 rollback r594: restructuring to make event activation independent.
changes are going to wait for api design


svn:r612
2007-12-24 22:49:30 +00:00
Niels Provos
68725dc8bd support integer arrays in rpc structures; this involved some refactoring of the event_rpcgen code, so that other types should be able to get arrays fairly easily
svn:r609
2007-12-23 07:38:11 +00:00
Niels Provos
fdafb66bb5 removed linger from http server socket; reported by Ilya Martynov
svn:r604
2007-12-19 06:33:05 +00:00
Niels Provos
d4bdbca847 add -Wstrict-aliasing and remove bogus evtag_test from event.h
svn:r602
2007-12-18 03:54:19 +00:00
Nick Mathewson
7ab26a2c32 r15519@tombo: nickm | 2007-12-16 13:54:12 -0500
Fix for bug 1846282: accept as well-formed DNS replies with questions but no answers.


svn:r595
2007-12-16 18:55:16 +00:00
Niels Provos
7aa845b73b restructure the code to make event activation independent of regular event logic
svn:r594
2007-12-16 04:10:30 +00:00
Niels Provos
850534734b fix a bug with event_rpcgen for integers
svn:r588
2007-12-13 06:36:54 +00:00
Niels Provos
ffd606cd6d prefix {encode,decode}_tag functions with evtag to avoid collisions
svn:r587
2007-12-13 06:14:18 +00:00
Niels Provos
3b345f3e2d pull setters/getters out of RPC structures to reduce their memory footprint
svn:r585
2007-12-12 07:02:55 +00:00
Niels Provos
ba48719946 support for 32-bit tag numbers in rpc structures
svn:r583
2007-12-12 04:39:42 +00:00
Niels Provos
e8b916c36e update ChangeLog; forgot about it
svn:r582
2007-12-09 05:07:48 +00:00
Nick Mathewson
2e2104f4ce r15172@tombo: nickm | 2007-12-06 12:54:37 -0500
Rewrite win32.c to use a red-black tree to map sockets to events.  This changes the performance from O(N^2) to O(N lg N).  Needs testing.  (This was made possible by recent changes to the implementation of non-persistent events.)


svn:r574
2007-12-06 18:13:03 +00:00
Nick Mathewson
3206bbca46 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:r573
2007-12-06 18:12:56 +00:00
Nick Mathewson
5482192bb3 r15166@tombo: nickm | 2007-12-05 23:35:10 -0500
Apply patch from bug 1841036: set the base of the correct event in evhttp_connection_start_detectclose()


svn:r571
2007-12-06 04:36:18 +00:00
Niels Provos
74b3db50ae always generate Date and Content-Length headers for HTTP/1.1
svn:r564
2007-11-29 06:08:24 +00:00
Niels Provos
f175befac9 small improvements to evhttp documentation
svn:r562
2007-11-29 04:03:36 +00:00
Niels Provos
5f3e31596b move EV_PERSIST handling out of the event backends
svn:r555
2007-11-27 01:39:10 +00:00
Nick Mathewson
ce4ee418d2 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:r553
2007-11-26 19:18:49 +00:00
Nick Mathewson
1120f04f3e r16731@catbus: nickm | 2007-11-25 16:52:53 -0500
Replace all fds on non-unix-specific APIs with evutil_socket_t, which is int on unix and intptr_t on win32.


svn:r552
2007-11-25 21:53:06 +00:00
Nick Mathewson
cbf9cfdf45 r16729@catbus: nickm | 2007-11-25 16:34:50 -0500
Add missing changelog entry for last commit.


svn:r551
2007-11-25 21:35:02 +00:00
Nick Mathewson
d1ad9403cb svn:r547 2007-11-25 21:28:51 +00:00
Nick Mathewson
fa95fe469a r16704@catbus: nickm | 2007-11-19 15:58:54 -0500
Check return value of event_add in signal.c


svn:r546
2007-11-25 21:28:43 +00:00
Nick Mathewson
2823cb0579 r14944@tombo: nickm | 2007-11-25 12:12:28 -0500
Make kqueue pass more unit tests.


svn:r544
2007-11-25 17:15:28 +00:00
Nick Mathewson
566ca34022 svn:r543 2007-11-25 17:15:17 +00:00
Nick Mathewson
7eb250e9c5 r14939@tombo: nickm | 2007-11-25 11:59:26 -0500
New function event_set_mem_functions to replace internal calls to malloc, free, etc with a user-supplied functions.


svn:r541
2007-11-25 17:14:19 +00:00
Niels Provos
88897852fc provide event_reinit() to reinitialized an event_base after fork - necessary for epoll/kqueue
svn:r539
2007-11-25 06:57:59 +00:00
Nick Mathewson
1c23e21952 r14931@tombo: nickm | 2007-11-17 17:21:09 -0500
Patch from Scott Lamb: Implement event_{base_}loopbreak.  Includes documentation and tests.  From sf.net Feature Request 1826546.


svn:r535
2007-11-17 22:21:42 +00:00
Nick Mathewson
70248ca8ad r14930@tombo: nickm | 2007-11-17 17:01:14 -0500
documentation fix on loopexit and elsewhere from Scott Lamb.


svn:r534
2007-11-17 22:21:33 +00:00
Niels Provos
af6f331a0b use a const pointer for bufferevent_write
svn:r531
2007-11-17 01:32:30 +00:00
Niels Provos
f586f42885 provide event_base_new() as a mechanism for not setting the current_global
svn:r529
2007-11-14 17:52:21 +00:00
Niels Provos
56934d5d97 debug cleanups in signal.c; from Christopher Layne
svn:r527
2007-11-13 17:36:58 +00:00
Niels Provos
d50afbb370 free minheap; from Christopher Layne
svn:r525
2007-11-13 03:32:10 +00:00
Niels Provos
3742868ab5 We do not need to specially remove a timeout before calling event_del; patch from Christopher Layne.
svn:r519
2007-11-12 06:54:35 +00:00
Niels Provos
4a1a2e0d52 Make the logic for active events work better with internal events; patch from Christopher Layne
svn:r509
2007-11-12 02:31:07 +00:00
Niels Provos
bbed0954b1 revert r505; it introduced errors in epoll
svn:r508
2007-11-11 03:05:03 +00:00
Nick Mathewson
321dfd55d4 r16585@catbus: nickm | 2007-11-10 00:16:11 -0500
Patch from Christopher Layne: Make event_del() restore previous signal handlers, not the default.


svn:r506
2007-11-10 05:18:17 +00:00
Nick Mathewson
9f0f3d6da2 r16584@catbus: nickm | 2007-11-10 00:00:59 -0500
Patch from Christopher Lane: reduce branch count in epoll_dispatch.c and generally improve clarity.


svn:r505
2007-11-10 05:18:11 +00:00
Nick Mathewson
cabcd62f38 r16578@catbus: nickm | 2007-11-08 12:34:51 -0500
The == operator in shell is a bash-ism; do not use it in autogen.sh


svn:r503
2007-11-08 17:36:28 +00:00