]>
granicus.if.org Git - libevent/log
Nick Mathewson [Fri, 25 Apr 2008 01:29:15 +0000 (01:29 +0000)]
r15320@tombo: nickm | 2008-04-24 21:29:06 -0400
Yes, niels says this is safe.
svn:r727
Nick Mathewson [Fri, 25 Apr 2008 01:18:18 +0000 (01:18 +0000)]
r15317@tombo: nickm | 2008-04-24 21:17:49 -0400
Add new functions to be more threadsafe (and structure-ignorant) than event_set.
svn:r726
Nick Mathewson [Fri, 25 Apr 2008 01:18:08 +0000 (01:18 +0000)]
r15316@tombo: nickm | 2008-04-24 20:58:36 -0400
Rename internal memory management functions from event_malloc() etc to mm_malloc() etc.
svn:r725
Nick Mathewson [Fri, 18 Apr 2008 13:46:13 +0000 (13:46 +0000)]
r15249@tombo: nickm | 2008-04-18 09:46:02 -0400
Avoid leaking a string in the unlikely OOM case from name_from_addr. spotted by niels.
svn:r724
Nick Mathewson [Fri, 18 Apr 2008 13:28:00 +0000 (13:28 +0000)]
r15245@tombo: nickm | 2008-04-18 09:27:50 -0400
Oops; use libevent-internal type instead of uint32_t.
svn:r722
Nick Mathewson [Fri, 18 Apr 2008 13:25:05 +0000 (13:25 +0000)]
r15242@tombo: nickm | 2008-04-18 09:24:44 -0400
Make tagging code thread-safe, and fix a bug in encode_int_internal
svn:r721
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.
svn:r720
Nick Mathewson [Thu, 17 Apr 2008 19:25:35 +0000 (19:25 +0000)]
r15226@tombo: nickm | 2008-04-17 15:25:25 -0400
Fix a couple of gcc warnings on 64-bit platforms
svn:r719
Nick Mathewson [Thu, 17 Apr 2008 19:19:36 +0000 (19:19 +0000)]
r15224@tombo: nickm | 2008-04-17 15:19:24 -0400
Oops. We need to make sure that strdup wasn't oom.
svn:r718
Nick Mathewson [Thu, 17 Apr 2008 19:18:40 +0000 (19:18 +0000)]
r15220@tombo: nickm | 2008-04-17 15:16:02 -0400
Use new includes in more files still
svn:r717
Nick Mathewson [Thu, 17 Apr 2008 19:17:50 +0000 (19:17 +0000)]
r15219@tombo: nickm | 2008-04-17 15:12:17 -0400
Use new includes in epoll.c
svn:r716
Nick Mathewson [Thu, 17 Apr 2008 19:16:30 +0000 (19:16 +0000)]
r15218@tombo: nickm | 2008-04-17 15:10:13 -0400
Add a missing #include <stdarg.h>
svn:r715
Nick Mathewson [Thu, 17 Apr 2008 17:55:35 +0000 (17:55 +0000)]
r15216@tombo: nickm | 2008-04-17 13:55:05 -0400
Add new thread-safe interfaces to evdns functions. Needs review.
svn:r714
Nick Mathewson [Thu, 17 Apr 2008 15:50:28 +0000 (15:50 +0000)]
r15214@tombo: nickm | 2008-04-17 11:47:10 -0400
Make name_from_addr() threadsafe in http.c
svn:r713
Nick Mathewson [Wed, 16 Apr 2008 21:01:31 +0000 (21:01 +0000)]
r15212@tombo: nickm | 2008-04-16 17:01:21 -0400
Remove some needless includes
svn:r712
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.
svn:r711
Nick Mathewson [Wed, 16 Apr 2008 20:01:27 +0000 (20:01 +0000)]
r15192@tombo: nickm | 2008-04-16 15:59:51 -0400
Fix a compilation error on OSX.
svn:r710
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.
svn:r709
Nick Mathewson [Thu, 10 Apr 2008 19:34:50 +0000 (19:34 +0000)]
r19305@catbus: nickm | 2008-04-10 15:34:10 -0400
Fix bug
1938754 : do not warn when epoll_create() fails with ENOSYS.
svn:r706
Nick Mathewson [Thu, 10 Apr 2008 19:25:11 +0000 (19:25 +0000)]
r19301@catbus: nickm | 2008-04-10 14:54:46 -0400
Forward-port: Correct the documentation on evbuffer_add_[v]printf: Fix for bug
1914464 .
svn:r705
Niels Provos [Thu, 3 Apr 2008 14:27:01 +0000 (14:27 +0000)]
proxy one more generator
svn:r701
Niels Provos [Thu, 3 Apr 2008 03:33:07 +0000 (03:33 +0000)]
slight refactoring
svn:r700
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.
svn:r699
Niels Provos [Mon, 31 Mar 2008 00:33:46 +0000 (00:33 +0000)]
do not delete uninitialized timeout event in evdns
svn:r697
Niels Provos [Mon, 31 Mar 2008 00:31:53 +0000 (00:31 +0000)]
add a check that base != NULL for threading; might want to drop this later
svn:r696
Niels Provos [Sun, 30 Mar 2008 21:06:33 +0000 (21:06 +0000)]
make RPC replies use application/octet-stream
svn:r694
Niels Provos [Sat, 29 Mar 2008 01:45:45 +0000 (01:45 +0000)]
make event methods static so that they are not exported; from Andrei Nigmatulin
svn:r692
Niels Provos [Tue, 11 Mar 2008 05:26:30 +0000 (05:26 +0000)]
rename lock create callback functions; as suggested by nick
svn:r691
Niels Provos [Mon, 10 Mar 2008 03:17:20 +0000 (03:17 +0000)]
switch thread support so that locks get allocated as they are needed.
svn:r690
Nick Mathewson [Tue, 4 Mar 2008 19:47:01 +0000 (19:47 +0000)]
r18547@catbus: nickm | 2008-03-04 14:46:42 -0500
Fix compilation with --enable-gcc-warnings
svn:r689
Niels Provos [Tue, 4 Mar 2008 05:42:20 +0000 (05:42 +0000)]
document thread functions
svn:r688
Niels Provos [Mon, 3 Mar 2008 03:36:51 +0000 (03:36 +0000)]
make event_rpcgen.py generate code include event-config.h
svn:r686
Niels Provos [Sun, 2 Mar 2008 21:39:49 +0000 (21:39 +0000)]
forgot this header file
svn:r685
Niels Provos [Sun, 2 Mar 2008 21:18:33 +0000 (21:18 +0000)]
Provide OpenSSL style support for multiple threads accessing the same event_base
svn:r684
Niels Provos [Sun, 2 Mar 2008 01:46:00 +0000 (01:46 +0000)]
Do not free the kqop file descriptor in other processes, also allow it to be 0; from Andrei Nigmatulin
svn:r682
Nick Mathewson [Fri, 29 Feb 2008 22:33:01 +0000 (22:33 +0000)]
r18492@catbus: nickm | 2008-02-29 17:32:55 -0500
Add another missing _REENTRANT.
svn:r681
Niels Provos [Fri, 29 Feb 2008 05:23:49 +0000 (05:23 +0000)]
address nick's comments and make evbuffer_pullup more efficient
svn:r680
Nick Mathewson [Thu, 28 Feb 2008 20:57:01 +0000 (20:57 +0000)]
r18490@catbus: nickm | 2008-02-28 15:56:55 -0500
Replace www.google.com with google.com; fix EVDNS_MAIN code.
svn:r679
Nick Mathewson [Thu, 28 Feb 2008 20:41:34 +0000 (20:41 +0000)]
r18488@catbus: nickm | 2008-02-28 15:41:27 -0500
Define reentrant in evdns.c so that we get a declaration for strtok_r
svn:r678
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.
svn:r677
Nick Mathewson [Thu, 28 Feb 2008 17:47:30 +0000 (17:47 +0000)]
r18484@catbus: nickm | 2008-02-28 12:47:20 -0500
Use event_warn() function, not fprintf-to-stderr.
svn:r676
Nick Mathewson [Thu, 28 Feb 2008 17:38:52 +0000 (17:38 +0000)]
r18482@catbus: nickm | 2008-02-28 12:38:40 -0500
Fix GCC 4.2 warnings; fix includes in subdirs.
svn:r675
Niels Provos [Thu, 28 Feb 2008 02:47:43 +0000 (02:47 +0000)]
improved code for evbuffer; avoids memcpy
svn:r674
Niels Provos [Wed, 27 Feb 2008 06:20:48 +0000 (06:20 +0000)]
add some basic tests for DELETE/PUT; from Josh Rotenberg
svn:r673
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.
svn:r671
Niels Provos [Tue, 26 Feb 2008 04:54:19 +0000 (04:54 +0000)]
move signal callbacks closer to test code
svn:r670
Niels Provos [Tue, 26 Feb 2008 03:49:00 +0000 (03:49 +0000)]
increase listen queue for http sockets to 128
svn:r669
Niels Provos [Tue, 26 Feb 2008 03:29:36 +0000 (03:29 +0000)]
deal correctly with http/1.0 and keep-alive
svn:r667
Niels Provos [Tue, 26 Feb 2008 03:12:07 +0000 (03:12 +0000)]
introduce evhttp_accept_socket() to accept from an already created socket
svn:r666
Niels Provos [Mon, 25 Feb 2008 07:49:22 +0000 (07:49 +0000)]
add support (without tests!) to PUT/DELETE requests; from Josh Rotenberg
svn:r662
Niels Provos [Mon, 25 Feb 2008 07:34:07 +0000 (07:34 +0000)]
do not insert event into list when evsel->add fails
svn:r660
Nick Mathewson [Sat, 23 Feb 2008 19:04:26 +0000 (19:04 +0000)]
r18370@catbus: nickm | 2008-02-23 14:04:00 -0500
clean up some corner cases in evutil.h.
svn:r655
Niels Provos [Sat, 23 Feb 2008 06:02:04 +0000 (06:02 +0000)]
simplify evbuffer by removing orig_buffer
svn:r654
Niels Provos [Wed, 20 Feb 2008 21:49:09 +0000 (21:49 +0000)]
update event_base_loop documentation; from Tani Hosokawa
svn:r652
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.
svn:r651
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.
svn:r649
Niels Provos [Sun, 17 Feb 2008 01:31:31 +0000 (01:31 +0000)]
remove NDEBUG ifdefs from evdns.c
svn:r647
Niels Provos [Sun, 17 Feb 2008 01:15:36 +0000 (01:15 +0000)]
allow regression code to be build even without Python installed
svn:r645
Niels Provos [Sun, 17 Feb 2008 01:12:09 +0000 (01:12 +0000)]
1.3.99-trunk -> 1.4.99-trunk
svn:r644
Nick Mathewson [Sat, 16 Feb 2008 20:50:02 +0000 (20:50 +0000)]
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
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.
svn:r640
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.
svn:r637
Niels Provos [Sat, 16 Feb 2008 06:09:39 +0000 (06:09 +0000)]
event_base_get_method; from Springande Ulv
svn:r635
Niels Provos [Tue, 12 Feb 2008 06:01:46 +0000 (06:01 +0000)]
devpoll and evport need reinit; tested by W.C.A. Wijngaards
svn:r633
Niels Provos [Sat, 9 Feb 2008 16:03:01 +0000 (16:03 +0000)]
address some compiler warnings in debug mode
svn:r630
Niels Provos [Wed, 6 Feb 2008 16:14:42 +0000 (16:14 +0000)]
EAGAIN check for event ports; from Wijngaards
svn:r629
Niels Provos [Sat, 26 Jan 2008 07:29:57 +0000 (07:29 +0000)]
remove pending timeouts on event_base_free
svn:r627
Nick Mathewson [Mon, 31 Dec 2007 20:47:12 +0000 (20:47 +0000)]
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
Niels Provos [Mon, 31 Dec 2007 20:42:21 +0000 (20:42 +0000)]
dereference the right field and associate the right connection
svn:r624
Niels Provos [Mon, 31 Dec 2007 19:33:30 +0000 (19:33 +0000)]
allow hooks to get access to the connection object
svn:r623
Niels Provos [Sat, 29 Dec 2007 22:45:54 +0000 (22:45 +0000)]
allow association of meta data with RPC requests for hook processing
svn:r622
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