Nick Mathewson [Sat, 16 Feb 2008 20:49:47 +0000 (20:49 +0000)]
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.
Nick Mathewson [Sat, 16 Feb 2008 16:56:34 +0000 (16:56 +0000)]
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.
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.
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.
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.
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
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.)
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()
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.
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.
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.
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.
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.
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.
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.
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.
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?
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.