]>
granicus.if.org Git - libevent/log
Niels Provos [Thu, 12 Jun 2008 14:43:35 +0000 (14:43 +0000)]
allow min_heap_erase to be called on removed members; from liusifan
svn:r849
Nick Mathewson [Mon, 2 Jun 2008 18:35:02 +0000 (18:35 +0000)]
Fix line ending style on windows projects files.
svn:r847
Niels Provos [Mon, 2 Jun 2008 05:45:26 +0000 (05:45 +0000)]
deliver partial data to request callbacks when chunked callback is set even if there is no chunking on the http level; allows cancelation of requests from within the chunked callback; from Scott Lamb.
svn:r846
Niels Provos [Sun, 1 Jun 2008 16:21:24 +0000 (16:21 +0000)]
fix an evbuffer corruption when adding an empty evbuffer; from Scott Lamb
svn:r845
Niels Provos [Sun, 1 Jun 2008 01:19:08 +0000 (01:19 +0000)]
do not define a variable in a header file; it will lead to duplicate symbols when linking
svn:r844
Niels Provos [Sat, 31 May 2008 18:57:21 +0000 (18:57 +0000)]
we need to declare the enum first before it can be used; c++ compilation errors
svn:r843
Nick Mathewson [Sat, 31 May 2008 14:37:31 +0000 (14:37 +0000)]
Add new functions to access backends by their features and to query the features of a backend.
svn:r842
Nick Mathewson [Fri, 30 May 2008 17:35:20 +0000 (17:35 +0000)]
Oops; add regress_et.c
svn:r841
Nick Mathewson [Fri, 30 May 2008 16:56:34 +0000 (16:56 +0000)]
Patch from Valery Kholodkov: support for edge-triggered events with epoll and kqueue. Changed from original patch: made test into a regression test, with explicit success/failure for edge-triggered and non-edge-triggered cases. Closes SF request
1968284 .
svn:r840
Nick Mathewson [Fri, 30 May 2008 16:19:01 +0000 (16:19 +0000)]
Resolve two conflicts.
svn:r839
Niels Provos [Thu, 29 May 2008 01:39:43 +0000 (01:39 +0000)]
simplify handling of environment variables for disabling backends;
make event_get_supported_methods obey environment variables; this
fixes make verify; problem reported by Scott Lamb.
svn:r838
Niels Provos [Sat, 17 May 2008 02:14:17 +0000 (02:14 +0000)]
constify struct timeval *
svn:r836
Niels Provos [Fri, 16 May 2008 01:55:40 +0000 (01:55 +0000)]
Fix use of freed memory in event_reinit; pointed out by Peter Postma
svn:r834
Niels Provos [Thu, 15 May 2008 06:36:36 +0000 (06:36 +0000)]
Attempt to make a project for the regression test. There are several problems:
- no gettimeofday on windows
- no varargs macros on windows (all the rpc stuff does not build)
- no zlib on windows (zlib test does not build)
- some library dependencies seem to be missing
svn:r833
Niels Provos [Thu, 15 May 2008 06:33:23 +0000 (06:33 +0000)]
close -> EVUTIL_CLOSESOCKET
svn:r832
Niels Provos [Thu, 15 May 2008 06:10:40 +0000 (06:10 +0000)]
windows does not have varargs macros, so this is all useless
svn:r831
Niels Provos [Thu, 15 May 2008 06:03:23 +0000 (06:03 +0000)]
add the code here until we figure out how to generate it on windows
svn:r830
Nick Mathewson [Thu, 15 May 2008 03:49:03 +0000 (03:49 +0000)]
r19749@catbus: nickm | 2008-05-14 23:48:44 -0400
New function to dump inserted and active events. Also do not recv() on an int array.
svn:r829
Niels Provos [Thu, 15 May 2008 03:19:05 +0000 (03:19 +0000)]
replace write/read/close with send/recv/EVUTIL_CLOSESOCKET
svn:r828
Nick Mathewson [Thu, 15 May 2008 03:16:34 +0000 (03:16 +0000)]
Minor project content tweaks
svn:r827
Niels Provos [Thu, 15 May 2008 03:14:48 +0000 (03:14 +0000)]
do not include sys/time.h on windows
svn:r826
Nick Mathewson [Thu, 15 May 2008 03:05:10 +0000 (03:05 +0000)]
r19739@catbus: nickm | 2008-05-14 23:05:03 -0400
Use our offsetof; do not rely on platform offsetof
svn:r825
Niels Provos [Thu, 15 May 2008 01:54:20 +0000 (01:54 +0000)]
add a simple http server for potential benchmarking
svn:r823
Niels Provos [Thu, 15 May 2008 01:53:48 +0000 (01:53 +0000)]
fix connection keep-alive behavior for HTTP/1.0
svn:r822
Nick Mathewson [Wed, 14 May 2008 15:56:17 +0000 (15:56 +0000)]
r19736@catbus: nickm | 2008-05-14 11:50:49 -0400
Add casts to make some printf formats in regress.c happier.
svn:r821
Niels Provos [Tue, 13 May 2008 05:05:30 +0000 (05:05 +0000)]
move some structure definitions from evrpc.h to evrpc-internal.h
svn:r817
Niels Provos [Tue, 13 May 2008 03:51:10 +0000 (03:51 +0000)]
use evhttp_connection_base_new()
svn:r816
Niels Provos [Tue, 13 May 2008 03:42:47 +0000 (03:42 +0000)]
document chunked replies plus fix doxygen warnings
svn:r815
Nick Mathewson [Mon, 12 May 2008 17:16:47 +0000 (17:16 +0000)]
Tweaks to make unit tests fail less badly on mingw on trunk.
svn:r814
Nick Mathewson [Mon, 12 May 2008 16:44:24 +0000 (16:44 +0000)]
r19709@catbus: nickm | 2008-05-12 12:42:48 -0400
Possible fix for [
1960723 ] snprintf and vsnprintf return values are wrong on win32
svn:r813
Niels Provos [Mon, 12 May 2008 03:12:09 +0000 (03:12 +0000)]
allow cancelation of user initiated http requests; this will allow cancelation of rpc requests eventually
svn:r812
Nick Mathewson [Mon, 12 May 2008 01:03:36 +0000 (01:03 +0000)]
Make trunk event.c build happily on win32 under mingw.
svn:r811
Nick Mathewson [Mon, 12 May 2008 00:56:19 +0000 (00:56 +0000)]
r19679@catbus: nickm | 2008-05-11 20:56:12 -0400
Windows does not have alloca().
svn:r810
Nick Mathewson [Mon, 12 May 2008 00:51:48 +0000 (00:51 +0000)]
r19677@catbus: nickm | 2008-05-11 20:51:41 -0400
Oops; we had not changed event_malloc() to mm_malloc() [etc] in win32.c
svn:r809
Nick Mathewson [Mon, 12 May 2008 00:40:04 +0000 (00:40 +0000)]
r19675@catbus: nickm | 2008-05-11 20:39:39 -0400
Stop pretending that u_char and u_short are standard types that win32 is dumb not to have. In fact, u_char can really just be spelled out, and u_short was usually just a bad way of saying ev_uint16_t.
svn:r808
Niels Provos [Sun, 11 May 2008 16:22:35 +0000 (16:22 +0000)]
more accessors for evhttp_request
svn:r807
Niels Provos [Sat, 10 May 2008 07:32:05 +0000 (07:32 +0000)]
dispatch the callbacks against the decoded uri to be more http compliant
svn:r806
Niels Provos [Sat, 10 May 2008 06:32:53 +0000 (06:32 +0000)]
evhttp_request_uri -> evhttp_request_get_uri
svn:r805
Niels Provos [Sat, 10 May 2008 05:58:17 +0000 (05:58 +0000)]
replace fnmatch with homegrown function
svn:r804
Nick Mathewson [Fri, 9 May 2008 04:00:17 +0000 (04:00 +0000)]
r19667@catbus: nickm | 2008-05-08 23:49:26 -0400
fwd-port: Always include winsock2.h before windows.h. Apparently some SDKs need this.
svn:r803
Nick Mathewson [Thu, 8 May 2008 23:57:31 +0000 (23:57 +0000)]
r15555@tombo: nickm | 2008-05-08 19:56:51 -0400
fwd-port The IRIX compiler thinks #error means warn. Fix configure.in to tolerate this.
svn:r801
Nick Mathewson [Thu, 8 May 2008 22:51:39 +0000 (22:51 +0000)]
r15551@tombo: nickm | 2008-05-08 14:49:20 -0400
Use _get_ convention for new accessor functions. (These are all new ones as of 2.0, I believe).
svn:r799
Nick Mathewson [Thu, 8 May 2008 15:55:09 +0000 (15:55 +0000)]
r15549@tombo: nickm | 2008-05-08 11:53:11 -0400
Make new http headers include minimal parts of event2/ tree; make old evhttp.h incldue event.h, since the old one did too.
svn:r798
Nick Mathewson [Thu, 8 May 2008 15:38:31 +0000 (15:38 +0000)]
svn:r797
Nick Mathewson [Thu, 8 May 2008 14:25:44 +0000 (14:25 +0000)]
r19656@catbus: nickm | 2008-05-08 10:25:08 -0400
forward-port: Remove #include "misc.h"s.
svn:r795
Nick Mathewson [Thu, 8 May 2008 14:06:33 +0000 (14:06 +0000)]
r19649@catbus: nickm | 2008-05-08 10:00:14 -0400
Replace gettimeofday() usage with a new evutil_gettimeofday(). This removes all previous need for win32-code/misc.[ch]
svn:r792
Niels Provos [Thu, 8 May 2008 07:00:16 +0000 (07:00 +0000)]
deprecate timeout_* event functions by moving them to event_compat.h
svn:r791
Niels Provos [Thu, 8 May 2008 06:15:04 +0000 (06:15 +0000)]
migrate evhttp to event2; accessors are still missing
svn:r790
Niels Provos [Thu, 8 May 2008 05:56:20 +0000 (05:56 +0000)]
event_base_new_with_config() and related methods
svn:r789
Niels Provos [Thu, 8 May 2008 05:33:15 +0000 (05:33 +0000)]
provide an api for retrieving the supported event mechanisms
svn:r788
Nick Mathewson [Wed, 7 May 2008 21:51:49 +0000 (21:51 +0000)]
r19641@catbus: nickm | 2008-05-07 17:51:26 -0400
Forward-port: Fix win32 vc-2005 build.
svn:r786
Nick Mathewson [Wed, 7 May 2008 20:29:33 +0000 (20:29 +0000)]
r19634@catbus: nickm | 2008-05-07 16:10:37 -0400
the C syntax is fn(void), not fn().
svn:r784
Nick Mathewson [Wed, 7 May 2008 20:29:11 +0000 (20:29 +0000)]
r19633@catbus: nickm | 2008-05-07 16:10:00 -0400
Fix bug
1958901 : stop overriding CPPFLAGS in test directory.
svn:r783
Niels Provos [Wed, 7 May 2008 01:52:24 +0000 (01:52 +0000)]
test virtual hosts
svn:r780
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.
svn:r779
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.
svn:r778
Nick Mathewson [Mon, 5 May 2008 17:49:52 +0000 (17:49 +0000)]
r19607@catbus: nickm | 2008-05-05 13:49:44 -0400
Hack to make sure that there is always a working fast EVENT_FD()
svn:r777
Nick Mathewson [Mon, 5 May 2008 15:46:00 +0000 (15:46 +0000)]
r19602@catbus: nickm | 2008-05-05 11:45:18 -0400
Make most of the tests use the new headers.
svn:r776
Nick Mathewson [Mon, 5 May 2008 15:45:47 +0000 (15:45 +0000)]
r19601@catbus: nickm | 2008-05-05 11:45:04 -0400
Make event_rpcgen.py use the new headers.
svn:r775
Nick Mathewson [Mon, 5 May 2008 15:45:39 +0000 (15:45 +0000)]
r19600@catbus: nickm | 2008-05-05 11:34:06 -0400
Move EV_* flags into event.h; they are a necessary part of the public API.
svn:r774
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.
svn:r773
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.
svn:r772
Niels Provos [Mon, 5 May 2008 07:17:05 +0000 (07:17 +0000)]
add support for virtual http hosts; no tests yet
svn:r771
Niels Provos [Sun, 4 May 2008 22:21:29 +0000 (22:21 +0000)]
fix a bug where it was not possible to bind multiple sockets to the same http
server; test that binding multiple sockets works.
svn:r769
Niels Provos [Sun, 4 May 2008 20:05:39 +0000 (20:05 +0000)]
improve doxygen documentation for evhttp.h - still incomplete
svn:r768
Niels Provos [Sun, 4 May 2008 18:31:21 +0000 (18:31 +0000)]
trust in naming: rename evbuffer.c to bufferevent.c
svn:r767
Nick Mathewson [Sun, 4 May 2008 17:23:20 +0000 (17:23 +0000)]
r19564@catbus: nickm | 2008-05-04 13:23:10 -0400
Fix compile with --enable-gcc-warnings and clock_gettime()
svn:r766
Niels Provos [Sun, 4 May 2008 03:52:24 +0000 (03:52 +0000)]
remove too agressive assert
svn:r765
Niels Provos [Sat, 3 May 2008 22:14:44 +0000 (22:14 +0000)]
make event_assign void; it cannot return an error
svn:r763
Niels Provos [Sat, 3 May 2008 22:10:09 +0000 (22:10 +0000)]
support for periodic timeouts
svn:r762
Niels Provos [Sat, 3 May 2008 21:37:33 +0000 (21:37 +0000)]
separate signal events from io events
svn:r760
Niels Provos [Sat, 3 May 2008 18:23:44 +0000 (18:23 +0000)]
cache clock_gettime/gettimeofday values in base
svn:r758
Niels Provos [Sat, 3 May 2008 03:05:28 +0000 (03:05 +0000)]
introduce evbuffer_reserve_space() and evbuffer_commit_space() to make processing in filters more efficient
svn:r757
Niels Provos [Sat, 3 May 2008 02:37:18 +0000 (02:37 +0000)]
introduce evbuffer_contiguous_space() and use it in the zlib filter test
svn:r756
Nick Mathewson [Fri, 2 May 2008 16:28:25 +0000 (16:28 +0000)]
r15439@tombo: nickm | 2008-05-02 12:28:08 -0400
use event_assign internall; switch uses of event_set to use event_assign instead.
svn:r755
Niels Provos [Thu, 1 May 2008 02:08:26 +0000 (02:08 +0000)]
expose a way to create the rpc context manually
svn:r754
Niels Provos [Thu, 1 May 2008 01:45:00 +0000 (01:45 +0000)]
allow connections to be removed from an rpc pool
svn:r753
Niels Provos [Wed, 30 Apr 2008 04:36:26 +0000 (04:36 +0000)]
fix missing printf format argument
svn:r752
Niels Provos [Wed, 30 Apr 2008 04:31:10 +0000 (04:31 +0000)]
provide example bufferevent filters doing compression and decompression as additional regression test
svn:r751
Niels Provos [Wed, 30 Apr 2008 01:01:57 +0000 (01:01 +0000)]
improve documentation for bufferevent.h
svn:r750
Niels Provos [Wed, 30 Apr 2008 00:50:20 +0000 (00:50 +0000)]
fix regression test; oops
svn:r749
Niels Provos [Wed, 30 Apr 2008 00:09:16 +0000 (00:09 +0000)]
support input/output filters for bufferevents
svn:r748
Niels Provos [Tue, 29 Apr 2008 23:18:04 +0000 (23:18 +0000)]
add more header files to doxygen
svn:r747
Nick Mathewson [Tue, 29 Apr 2008 21:19:26 +0000 (21:19 +0000)]
r15346@tombo: nickm | 2008-04-29 17:19:18 -0400
Remove the never-exported, never-used, never-threadsafe evhttp_hostportfile()
svn:r746
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().
svn:r744
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.
svn:r743
Niels Provos [Tue, 29 Apr 2008 04:52:50 +0000 (04:52 +0000)]
convert evhttp_connection to use bufferevents
svn:r742
Niels Provos [Tue, 29 Apr 2008 04:35:26 +0000 (04:35 +0000)]
also try client connection for chunked requests
svn:r741
Niels Provos [Tue, 29 Apr 2008 02:33:27 +0000 (02:33 +0000)]
test the server side of sending chunked replies
svn:r740
Niels Provos [Tue, 29 Apr 2008 00:24:00 +0000 (00:24 +0000)]
test some primitives from http.c
svn:r739
Niels Provos [Sun, 27 Apr 2008 20:40:56 +0000 (20:40 +0000)]
introduce bufferevent_setcb and bufferevent_setfd to allow better manipulation of bufferevents
svn:r737
Niels Provos [Sun, 27 Apr 2008 20:04:33 +0000 (20:04 +0000)]
test connection retry logic
svn:r736
Niels Provos [Sun, 27 Apr 2008 19:41:26 +0000 (19:41 +0000)]
test server behavior when connection times out while reading the headers
svn:r735
Niels Provos [Sun, 27 Apr 2008 00:32:10 +0000 (00:32 +0000)]
provide bufferevent_input and bufferevent_output without requiring knowledge of the structure
svn:r734
Niels Provos [Sat, 26 Apr 2008 05:13:56 +0000 (05:13 +0000)]
fix a bug in which bufferevent_write_buffer would not schedule a write event
svn:r733
Niels Provos [Sat, 26 Apr 2008 01:00:44 +0000 (01:00 +0000)]
fix a bug in buffrevent read water marks and add a test for them
svn:r731
Niels Provos [Sat, 26 Apr 2008 00:35:17 +0000 (00:35 +0000)]
expose bufferevent_setwatermark via header files and fix high watermark on read
svn:r729
Niels Provos [Fri, 25 Apr 2008 02:44:46 +0000 (02:44 +0000)]
add bufferevent_read_buffer function
svn:r728
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