Nick Mathewson [Mon, 5 May 2008 19:19:47 +0000 (19:19 +0000)]
r19610@catbus: nickm | 2008-05-05 15:18:52 -0400
Switch strcmp() tests in test_evbuffer() to use memcmp instead. Previously they broke on my Linux box.
Nick Mathewson [Mon, 5 May 2008 19:19:08 +0000 (19:19 +0000)]
r19609@catbus: nickm | 2008-05-05 15:16:52 -0400
Reename evdns-internal struct request to evdns_request, and expose the name. switch new evdns resolve APIs to return evdns_request*. This is a prereq to making evdns requests cancelable.
Nick Mathewson [Mon, 5 May 2008 15:45:30 +0000 (15:45 +0000)]
r19599@catbus: nickm | 2008-05-05 11:26:18 -0400
Turn event_initialized() and friends into a function; add function equivalents for EVENT_FD and EVENT_SIGNAL.
Nick Mathewson [Mon, 5 May 2008 15:00:53 +0000 (15:00 +0000)]
r19597@catbus: nickm | 2008-05-05 11:00:29 -0400
define _GNU_SOURCE before including fnmatch.h so that FNM_CASEFOLD gets defined and linux build gets fixed. This whole fnmatch() business will be a bit hard to port, though: windows doesn't have one IIUC, so we'll have to reimplement our own to work there.
Nick Mathewson [Tue, 29 Apr 2008 18:11:23 +0000 (18:11 +0000)]
r15341@tombo: nickm | 2008-04-29 14:09:50 -0400
Use internal implementation for evutil_timercmp() everywhere, to avoid bugs when the platform timercmp() has never heard of <= or >=. Also, replace timercmp() usage in min_heap.c with call to evutil_timercmp().
Nick Mathewson [Tue, 29 Apr 2008 18:11:10 +0000 (18:11 +0000)]
r15339@tombo: nickm | 2008-04-29 14:03:48 -0400
Note that evhttp_hostportfile is not threadsafe, and so its usage will change. Mark its first argument const. Remove a now-redundant declaration for it in http-internal.h.
Nick Mathewson [Thu, 17 Apr 2008 19:27:54 +0000 (19:27 +0000)]
r15228@tombo: nickm | 2008-04-17 15:27:39 -0400
Use new includes in evport.c and devpoll.c. I do not have the hardware to compile these on; somebody else should test them.
Nick Mathewson [Wed, 16 Apr 2008 20:01:51 +0000 (20:01 +0000)]
r15193@tombo: nickm | 2008-04-16 16:00:35 -0400
Split event.h into several new headers in include/event2. event.h is now just a wrapper that includes all the subheaders.
Nick Mathewson [Fri, 11 Apr 2008 20:02:50 +0000 (20:02 +0000)]
r19309@catbus: nickm | 2008-04-11 16:02:07 -0400
Fix for epoll-on-linux bug (#1908866) where timeout values over (LONG_MAX-999)/HZ) (35 for me, or maybe 6 hours 50 min for some people, or maybe 3 hours 25 minutes for a special few) get treated as "wait forever". This actually deserves to be fixed in the kernel, but even if it is we will need to support Linux versions with this bug.
Niels Provos [Mon, 31 Mar 2008 02:04:34 +0000 (02:04 +0000)]
fix a bug in which evbuffer_add_vfprintf would loop forever; avoid
fragmentation in evbuffer_expand by increasing the size of the last buffer
in the chain; as a result with have to keep track of the previous_to_last
chain; provide a evbuffer_validate() function in the regression test to
make sure that all evbuffer are internally consistent.
Nick Mathewson [Thu, 28 Feb 2008 18:36:03 +0000 (18:36 +0000)]
r18486@catbus: nickm | 2008-02-28 13:35:53 -0500
Make offsetof into evutil_offsetof. Be a little more willing to call evbuffer_chain_align() from evbuffer_expand(). Clarify some docs, and add some XXX comments to note questionable areas.
Nick Mathewson [Tue, 26 Feb 2008 20:24:29 +0000 (20:24 +0000)]
r14507@tombo: nickm | 2008-02-26 15:23:44 -0500
Patch from Tani Hosokawa: make some functions in http.c threadsafe. Also, note some functions in http.c that still are not threadsafe.
Nick Mathewson [Mon, 18 Feb 2008 20:13:27 +0000 (20:13 +0000)]
r18169@catbus: nickm | 2008-02-18 15:13:20 -0500
Rebuild and re-run configure etc when configure.in or Makefile.am changes. Also, have automake do its dependency tracking.
Nick Mathewson [Mon, 18 Feb 2008 20:04:01 +0000 (20:04 +0000)]
r18145@catbus: nickm | 2008-02-18 15:02:20 -0500
Stop using deprecated autoconf code to set integer types; detect actual files to include more thoroughly. This should make us work on solaris 9 again. This should be a backport candidate, if it works. Also, make all libevent code use ev_uint32_t etc, rather than uint_32_t.