611 Commits

Author SHA1 Message Date
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
Nick Mathewson
9859bc783a r15764@tombo: nickm | 2007-12-31 15:46:16 -0500
Forward-port from 1.4 branch: Make generated rpc files build-depend on event_rpcgen.


svn:r626
2007-12-31 20:47:12 +00:00
Niels Provos
992bc85b96 dereference the right field and associate the right connection
svn:r624
2007-12-31 20:42:21 +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
024804cce7 the win32 changes for regress_http broke the regression test under unix. making the socket non-blocking can return -1 on connect; so now, we need to check the errno; not sure if that is supported under windows.
svn:r621
2007-12-28 07:58:29 +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
Nick Mathewson
6d291da240 Fix at least two bugs that are keeping the HTTP regression tests from running on windows. There are some more bugs somewhere, since the HTTP regression tests still fail on windows. But now they fail less.
svn:r619
2007-12-28 00:34:05 +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
Nick Mathewson
76945273c6 r15733@tombo: nickm | 2007-12-27 16:37:33 -0500
Add another "what's new" file -- this one for svn trunk


svn:r616
2007-12-27 21:37:52 +00:00
Niels Provos
616a64c87c additional add argument was missing const qualifier
svn:r615
2007-12-27 20:08:21 +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
Nick Mathewson
a5176a65cc Fix a win32 warning in regress.c
svn:r608
2007-12-20 22:45:30 +00:00
Nick Mathewson
127888bded r17291@catbus: nickm | 2007-12-20 17:19:55 -0500
Add tree.h to distributed files in trunk.


svn:r607
2007-12-20 22:20:06 +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
d80c1c3689 r17185@catbus: nickm | 2007-12-16 14:33:40 -0500
Fix compilation with --enable-gcc-warnings enabled.


svn:r599
2007-12-16 19:34:09 +00:00
Nick Mathewson
d56a34e466 r16991@catbus: nickm | 2007-12-06 15:05:56 -0500
Move event_init in regress.c to the function that actually messed up the current_base value.


svn:r598
2007-12-16 19:33:52 +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
622f69cc5a forgot to make new member optional
svn:r590
2007-12-14 07:12:05 +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
Niels Provos
fbe24f43ab remove obsoleted recalc code
svn:r581
2007-12-09 05:07:20 +00:00
Nick Mathewson
fa89d661d9 Adjust more unit tests to pass on win32.
svn:r580
2007-12-06 19:40:49 +00:00
Nick Mathewson
fd418645ff Add winsock init functions to bench.c so it can run on win32.
svn:r579
2007-12-06 19:36:49 +00:00
Nick Mathewson
9cc67e5f78 Compile regression tests by default even on win32.
svn:r578
2007-12-06 19:35:55 +00:00
Nick Mathewson
77861fa7f1 r16931@catbus: nickm | 2007-12-06 14:19:58 -0500
Fix warnings in debug messages


svn:r577
2007-12-06 19:20:24 +00:00
Nick Mathewson
cd666f8071 Debug new win32 code: make bufferevents test pass.
svn:r576
2007-12-06 19:18:14 +00:00
Nick Mathewson
78d0de30b8 Fix compile warnings and errors in win32 build.
svn:r575
2007-12-06 18:38:50 +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
1e435af17e r15170@tombo: nickm | 2007-12-06 12:38:03 -0500
Fix a warning in regress.c


svn:r572
2007-12-06 18:12:44 +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
60103d25a9 remove duplicate submit of test_evbuffer_readln
svn:r569
2007-12-01 16:36:00 +00:00
Nick Mathewson
395dd198cb r15096@tombo: nickm | 2007-12-01 04:29:39 -0500
Test for corner-cases of re-adding non-persistent events from one another's handlers


svn:r568
2007-12-01 09:30:07 +00:00
Nick Mathewson
d73cf1e1f2 svn:r567 2007-12-01 09:29:52 +00:00
Niels Provos
876c3af7b0 add another benchmark that tests cascading events
svn:r566
2007-11-30 02:21:33 +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
eeb5e4cd88 a bug in the regression test of event_reinit caused epoll to fail
svn:r560
2007-11-29 02:52:32 +00:00
Niels Provos
ef085e84c6 we need to pass the evbase to evsel->add
svn:r558
2007-11-27 06:45:25 +00:00
Niels Provos
e2e4cf1f6c more complete test for forking behavior
svn:r556
2007-11-27 06:11:28 +00:00
Niels Provos
5f3e31596b move EV_PERSIST handling out of the event backends
svn:r555
2007-11-27 01:39:10 +00:00