Niels Provos [Fri, 28 Dec 2007 07:58:29 +0000 (07:58 +0000)]
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
Niels Provos [Fri, 28 Dec 2007 00:36:47 +0000 (00:36 +0000)]
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
Nick Mathewson [Fri, 28 Dec 2007 00:34:05 +0000 (00:34 +0000)]
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
Niels Provos [Thu, 27 Dec 2007 23:17:24 +0000 (23:17 +0000)]
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
Nick Mathewson [Thu, 27 Dec 2007 21:37:52 +0000 (21:37 +0000)]
r15733@tombo: nickm | 2007-12-27 16:37:33 -0500
Add another "what's new" file -- this one for svn trunk
svn:r616
Niels Provos [Thu, 27 Dec 2007 20:08:21 +0000 (20:08 +0000)]
additional add argument was missing const qualifier
svn:r615
Niels Provos [Mon, 24 Dec 2007 23:59:41 +0000 (23:59 +0000)]
support string arrays in event_rpcgen
svn:r613
Niels Provos [Mon, 24 Dec 2007 22:49:30 +0000 (22:49 +0000)]
rollback r594: restructuring to make event activation independent.
changes are going to wait for api design
svn:r612
Niels Provos [Sun, 23 Dec 2007 07:38:11 +0000 (07:38 +0000)]
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
Nick Mathewson [Thu, 20 Dec 2007 22:45:30 +0000 (22:45 +0000)]
Fix a win32 warning in regress.c
svn:r608
Nick Mathewson [Thu, 20 Dec 2007 22:20:06 +0000 (22:20 +0000)]
r17291@catbus: nickm | 2007-12-20 17:19:55 -0500
Add tree.h to distributed files in trunk.
svn:r607
Niels Provos [Wed, 19 Dec 2007 06:33:05 +0000 (06:33 +0000)]
removed linger from http server socket; reported by Ilya Martynov
svn:r604
Niels Provos [Tue, 18 Dec 2007 03:54:19 +0000 (03:54 +0000)]
add -Wstrict-aliasing and remove bogus evtag_test from event.h
svn:r602
Nick Mathewson [Sun, 16 Dec 2007 19:34:09 +0000 (19:34 +0000)]
r17185@catbus: nickm | 2007-12-16 14:33:40 -0500
Fix compilation with --enable-gcc-warnings enabled.
svn:r599
Nick Mathewson [Sun, 16 Dec 2007 19:33:52 +0000 (19:33 +0000)]
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
Nick Mathewson [Sun, 16 Dec 2007 18:55:16 +0000 (18:55 +0000)]
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
Niels Provos [Sun, 16 Dec 2007 04:10:30 +0000 (04:10 +0000)]
restructure the code to make event activation independent of regular event logic
svn:r594
Niels Provos [Fri, 14 Dec 2007 07:12:05 +0000 (07:12 +0000)]
forgot to make new member optional
svn:r590
Niels Provos [Thu, 13 Dec 2007 06:36:54 +0000 (06:36 +0000)]
fix a bug with event_rpcgen for integers
svn:r588
Niels Provos [Thu, 13 Dec 2007 06:14:18 +0000 (06:14 +0000)]
prefix {encode,decode}_tag functions with evtag to avoid collisions
svn:r587
Niels Provos [Wed, 12 Dec 2007 07:02:55 +0000 (07:02 +0000)]
pull setters/getters out of RPC structures to reduce their memory footprint
svn:r585
Niels Provos [Wed, 12 Dec 2007 04:39:42 +0000 (04:39 +0000)]
support for 32-bit tag numbers in rpc structures
svn:r583
Niels Provos [Sun, 9 Dec 2007 05:07:48 +0000 (05:07 +0000)]
update ChangeLog; forgot about it
svn:r582
Niels Provos [Sun, 9 Dec 2007 05:07:20 +0000 (05:07 +0000)]
remove obsoleted recalc code
svn:r581
Nick Mathewson [Thu, 6 Dec 2007 19:40:49 +0000 (19:40 +0000)]
Adjust more unit tests to pass on win32.
svn:r580
Nick Mathewson [Thu, 6 Dec 2007 19:36:49 +0000 (19:36 +0000)]
Add winsock init functions to bench.c so it can run on win32.
svn:r579
Nick Mathewson [Thu, 6 Dec 2007 19:35:55 +0000 (19:35 +0000)]
Compile regression tests by default even on win32.
svn:r578
Nick Mathewson [Thu, 6 Dec 2007 19:20:24 +0000 (19:20 +0000)]
r16931@catbus: nickm | 2007-12-06 14:19:58 -0500
Fix warnings in debug messages
svn:r577
Nick Mathewson [Thu, 6 Dec 2007 19:18:14 +0000 (19:18 +0000)]
Debug new win32 code: make bufferevents test pass.
svn:r576
Nick Mathewson [Thu, 6 Dec 2007 18:38:50 +0000 (18:38 +0000)]
Fix compile warnings and errors in win32 build.
svn:r575
Nick Mathewson [Thu, 6 Dec 2007 18:13:03 +0000 (18:13 +0000)]
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
Nick Mathewson [Thu, 6 Dec 2007 18:12:56 +0000 (18:12 +0000)]
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
Nick Mathewson [Thu, 6 Dec 2007 18:12:44 +0000 (18:12 +0000)]
r15170@tombo: nickm | 2007-12-06 12:38:03 -0500
Fix a warning in regress.c
svn:r572
Nick Mathewson [Thu, 6 Dec 2007 04:36:18 +0000 (04:36 +0000)]
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
Niels Provos [Sat, 1 Dec 2007 16:36:00 +0000 (16:36 +0000)]
remove duplicate submit of test_evbuffer_readln
svn:r569
Nick Mathewson [Sat, 1 Dec 2007 09:30:07 +0000 (09:30 +0000)]
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
Nick Mathewson [Sat, 1 Dec 2007 09:29:52 +0000 (09:29 +0000)]
svn:r567
Niels Provos [Fri, 30 Nov 2007 02:21:33 +0000 (02:21 +0000)]
add another benchmark that tests cascading events
svn:r566
Niels Provos [Thu, 29 Nov 2007 06:08:24 +0000 (06:08 +0000)]
always generate Date and Content-Length headers for HTTP/1.1
svn:r564
Niels Provos [Thu, 29 Nov 2007 04:03:36 +0000 (04:03 +0000)]
small improvements to evhttp documentation
svn:r562
Niels Provos [Thu, 29 Nov 2007 02:52:32 +0000 (02:52 +0000)]
a bug in the regression test of event_reinit caused epoll to fail
svn:r560
Niels Provos [Tue, 27 Nov 2007 06:45:25 +0000 (06:45 +0000)]
we need to pass the evbase to evsel->add
svn:r558
Niels Provos [Tue, 27 Nov 2007 06:11:28 +0000 (06:11 +0000)]
more complete test for forking behavior
svn:r556
Niels Provos [Tue, 27 Nov 2007 01:39:10 +0000 (01:39 +0000)]
move EV_PERSIST handling out of the event backends
svn:r555
Nick Mathewson [Mon, 26 Nov 2007 19:25:09 +0000 (19:25 +0000)]
r16735@catbus: nickm | 2007-11-26 14:24:58 -0500
Fix test for EVBUFFER_LENGTH in evhttp_make_header(). Since appending an empty buffer to another is a no-op, this is not really a bug-fix.
svn:r554
Nick Mathewson [Mon, 26 Nov 2007 19:18:49 +0000 (19:18 +0000)]
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
Nick Mathewson [Sun, 25 Nov 2007 21:53:06 +0000 (21:53 +0000)]
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
Nick Mathewson [Sun, 25 Nov 2007 21:35:02 +0000 (21:35 +0000)]
r16729@catbus: nickm | 2007-11-25 16:34:50 -0500
Add missing changelog entry for last commit.
svn:r551
Nick Mathewson [Sun, 25 Nov 2007 21:32:26 +0000 (21:32 +0000)]
r14953@tombo: nickm | 2007-11-25 15:56:40 -0500
Replace evbuffer_readline with a more powerful evbuffer_readln that can handle more EOL styles, and that can give useful results when there are NUL characters inside the returned values. Includes regression tests.
svn:r550
Nick Mathewson [Sun, 25 Nov 2007 21:32:15 +0000 (21:32 +0000)]
r14952@tombo: nickm | 2007-11-25 14:47:45 -0500
Fix an unused variable warning.
svn:r549
Nick Mathewson [Sun, 25 Nov 2007 21:28:51 +0000 (21:28 +0000)]
svn:r547
Nick Mathewson [Sun, 25 Nov 2007 21:28:43 +0000 (21:28 +0000)]
r16704@catbus: nickm | 2007-11-19 15:58:54 -0500
Check return value of event_add in signal.c
svn:r546
Nick Mathewson [Sun, 25 Nov 2007 17:15:28 +0000 (17:15 +0000)]
r14944@tombo: nickm | 2007-11-25 12:12:28 -0500
Make kqueue pass more unit tests.
svn:r544
Nick Mathewson [Sun, 25 Nov 2007 17:15:17 +0000 (17:15 +0000)]
svn:r543
Nick Mathewson [Sun, 25 Nov 2007 17:14:24 +0000 (17:14 +0000)]
r14940@tombo: nickm | 2007-11-25 12:01:37 -0500
New mm-internal.h header that includes internal memory management functions.
svn:r542
Nick Mathewson [Sun, 25 Nov 2007 17:14:19 +0000 (17:14 +0000)]
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
Niels Provos [Sun, 25 Nov 2007 07:11:59 +0000 (07:11 +0000)]
forgot to dealloc previous base
svn:r540
Niels Provos [Sun, 25 Nov 2007 06:57:59 +0000 (06:57 +0000)]
provide event_reinit() to reinitialized an event_base after fork - necessary for epoll/kqueue
svn:r539
Nick Mathewson [Thu, 22 Nov 2007 16:41:29 +0000 (16:41 +0000)]
r14935@tombo: nickm | 2007-11-22 11:36:54 -0500
Always set test_ok to zero after finishing a test, and before starting one. This turns up some failures we had been missing.
svn:r537
Nick Mathewson [Sat, 17 Nov 2007 22:21:42 +0000 (22:21 +0000)]
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
Nick Mathewson [Sat, 17 Nov 2007 22:21:33 +0000 (22:21 +0000)]
r14930@tombo: nickm | 2007-11-17 17:01:14 -0500
documentation fix on loopexit and elsewhere from Scott Lamb.
svn:r534
Niels Provos [Sat, 17 Nov 2007 01:32:30 +0000 (01:32 +0000)]
use a const pointer for bufferevent_write
svn:r531
Niels Provos [Wed, 14 Nov 2007 17:52:21 +0000 (17:52 +0000)]
provide event_base_new() as a mechanism for not setting the current_global
svn:r529
Niels Provos [Tue, 13 Nov 2007 17:36:58 +0000 (17:36 +0000)]
debug cleanups in signal.c; from Christopher Layne
svn:r527
Niels Provos [Tue, 13 Nov 2007 03:32:10 +0000 (03:32 +0000)]
free minheap; from Christopher Layne
svn:r525
Niels Provos [Mon, 12 Nov 2007 07:34:29 +0000 (07:34 +0000)]
clean up event-config.h to fix make distcheck; from sourceforge tracker
svn:r521
Niels Provos [Mon, 12 Nov 2007 06:54:35 +0000 (06:54 +0000)]
We do not need to specially remove a timeout before calling event_del; patch from Christopher Layne.
svn:r519
Niels Provos [Mon, 12 Nov 2007 05:34:10 +0000 (05:34 +0000)]
srcdir for verify; from Christopher Layne
svn:r516
Niels Provos [Mon, 12 Nov 2007 02:44:02 +0000 (02:44 +0000)]
stick autogen.sh into EXTRA_DIST
svn:r515
Niels Provos [Mon, 12 Nov 2007 02:32:35 +0000 (02:32 +0000)]
we no longer need acconfig.h
svn:r510
Niels Provos [Mon, 12 Nov 2007 02:31:07 +0000 (02:31 +0000)]
Make the logic for active events work better with internal events; patch from Christopher Layne
svn:r509
Niels Provos [Sun, 11 Nov 2007 03:05:03 +0000 (03:05 +0000)]
revert r505; it introduced errors in epoll
svn:r508
Nick Mathewson [Sat, 10 Nov 2007 07:49:13 +0000 (07:49 +0000)]
r16588@catbus: nickm | 2007-11-10 02:47:14 -0500
Another include for sample. Patch from Christopher Layne.
svn:r507
Nick Mathewson [Sat, 10 Nov 2007 05:18:17 +0000 (05:18 +0000)]
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
Nick Mathewson [Sat, 10 Nov 2007 05:18:11 +0000 (05:18 +0000)]
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
Nick Mathewson [Thu, 8 Nov 2007 17:36:28 +0000 (17:36 +0000)]
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
Nick Mathewson [Wed, 7 Nov 2007 22:57:08 +0000 (22:57 +0000)]
r16556@catbus: nickm | 2007-11-07 17:55:39 -0500
MSVC6 does not seem to define a useful "what is the name of this function" macro
svn:r502
Nick Mathewson [Wed, 7 Nov 2007 22:35:15 +0000 (22:35 +0000)]
r16554@catbus: nickm | 2007-11-07 17:33:49 -0500
Mention autogen.sh in the README, now that we are more vocally encouraging people to try svn.
svn:r501
Nick Mathewson [Wed, 7 Nov 2007 21:14:04 +0000 (21:14 +0000)]
r16544@catbus: nickm | 2007-11-07 16:12:37 -0500
Oops; forgot the log entry.
svn:r500
Nick Mathewson [Wed, 7 Nov 2007 21:01:26 +0000 (21:01 +0000)]
Make all the C files in the libraries compile under MSVC 2005 Express. There are still a few warnings, and probably some subtle issues, but it's better than nothing.
svn:r499
Nick Mathewson [Wed, 7 Nov 2007 07:33:36 +0000 (07:33 +0000)]
r16510@catbus: nickm | 2007-11-07 02:29:42 -0500
Try not to shadow local variables or function arguments.
svn:r498
Nick Mathewson [Wed, 7 Nov 2007 07:33:31 +0000 (07:33 +0000)]
r16509@catbus: nickm | 2007-11-07 02:08:32 -0500
Stop using C++ style comments.
svn:r497
Nick Mathewson [Wed, 7 Nov 2007 07:33:26 +0000 (07:33 +0000)]
r16508@catbus: nickm | 2007-11-07 02:01:03 -0500
Note a dubious point in http.c
svn:r496
Nick Mathewson [Wed, 7 Nov 2007 07:33:21 +0000 (07:33 +0000)]
r16507@catbus: nickm | 2007-11-07 01:34:55 -0500
Never assign a string constant to a non-const char *.
svn:r495
Nick Mathewson [Wed, 7 Nov 2007 07:33:16 +0000 (07:33 +0000)]
r16506@catbus: nickm | 2007-11-07 01:29:59 -0500
Make all rpc and http functions not prototyped in evrpc.h and evhttp.h into static functions. I believe that these functions were meant to be private, yes?
svn:r494
Nick Mathewson [Wed, 7 Nov 2007 06:07:54 +0000 (06:07 +0000)]
Remove spurious #include <sys/tree.h> in win32.c.
svn:r493
Nick Mathewson [Wed, 7 Nov 2007 06:01:57 +0000 (06:01 +0000)]
r16501@catbus: nickm | 2007-11-07 01:00:31 -0500
This is one of those patches which will either make matters far
simpler after the bugs shake out, or will get reverted pretty quick
once we realize that it is a stupid idea.
We now post-process the config.h file into a new event-config.h file,
whose macros are prefixed with _EVENT_ and which is thus safe for
headers to include. Using this, we can define replacement timeval
manipulation functions in evutil.h, and use them uniformly through our
code. We can also detect which headers are needful in event.h, and
include them as required.
This is also the perfect time to remove the long-deprecated acconfig.h
file, so that autoheader no longer warns.
Should resolve the following issues:
[
1826530 ] Header files should have access to autoconf output.
[
1826545 ] acconfig.h is deprecated.
[
1826564 ] On some platforms, event.h can't be included alone.
svn:r492
Nick Mathewson [Wed, 7 Nov 2007 06:01:45 +0000 (06:01 +0000)]
r16500@catbus: nickm | 2007-11-07 00:27:44 -0500
Remove from the (deprecated) acconfig.h file stubs that are already generated by autoheader.
svn:r491
Nick Mathewson [Wed, 7 Nov 2007 05:02:21 +0000 (05:02 +0000)]
r16497@catbus: nickm | 2007-11-07 00:01:02 -0500
Resolve issue
1826588: make event_base_free() succeed even if there are pending non-INTERNAL events still in the base. This can leak memory and fds if used injudiciously, but at least it no longer crashes.
svn:r490
Nick Mathewson [Wed, 7 Nov 2007 05:02:14 +0000 (05:02 +0000)]
r16496@catbus: nickm | 2007-11-06 23:58:52 -0500
Clarify some doxygen in event.h
svn:r489
Nick Mathewson [Wed, 7 Nov 2007 04:28:54 +0000 (04:28 +0000)]
r16492@catbus: nickm | 2007-11-06 23:27:32 -0500
Fix unit tests so that an outdated nameserver means "Skip IPv6 tests", not "Abort."
svn:r487
Nick Mathewson [Wed, 7 Nov 2007 03:52:20 +0000 (03:52 +0000)]
r16489@catbus: nickm | 2007-11-06 22:51:05 -0500
Do not use "class" as identifier in evdns.h; but use a backward-compatible fix. (Should fix bug
1826515, originally reported by Roger Clark)
svn:r486
Nick Mathewson [Wed, 7 Nov 2007 03:40:26 +0000 (03:40 +0000)]
r16487@catbus: nickm | 2007-11-06 22:38:44 -0500
Remove rtsig method, as discussed in July. It hasn't compiled for quite a while, and nobody has seemed to miss it much. Please let us know if this was a bad call. [Tracker issue
1826539].
svn:r485
Niels Provos [Wed, 7 Nov 2007 03:25:03 +0000 (03:25 +0000)]
remove tree.h from EXTRA_DIST; from Charles Kerr
svn:r484
Nick Mathewson [Wed, 7 Nov 2007 02:30:17 +0000 (02:30 +0000)]
r14744@tombo: nickm | 2007-11-06 21:30:11 -0500
Fix coding error: patch from Charles Kerr.
svn:r483
Niels Provos [Wed, 7 Nov 2007 01:48:44 +0000 (01:48 +0000)]
make event_init should return struct event_base *
svn:r481
Nick Mathewson [Tue, 6 Nov 2007 20:57:37 +0000 (20:57 +0000)]
r16473@catbus: nickm | 2007-11-06 15:55:35 -0500
Increment MAX_ADDRS in evdns so as to be quite large. This is not as good as a general solution, but it may be good enough for practical use.
svn:r479
Nick Mathewson [Tue, 6 Nov 2007 20:57:32 +0000 (20:57 +0000)]
r16454@catbus: nickm | 2007-11-06 09:59:45 -0500
Small code cleanups in epoll_dispatch(): remove a needless variable and some redundant conditionals.
svn:r478
Nick Mathewson [Tue, 6 Nov 2007 03:04:49 +0000 (03:04 +0000)]
r14732@tombo: nickm | 2007-11-05 22:03:28 -0500
Quick hack to make evhttp.h build when there is no TAILQ to be found. Based on patch from Paul Fisher. We could perhaps do this more elegantly, but it _does_ need to be done.
svn:r475
Niels Provos [Sun, 4 Nov 2007 06:35:29 +0000 (06:35 +0000)]
improve doxygen documentation
svn:r473