Nick Mathewson
2baaac7fdb
Forward-port: Rename INPUT and OUTPUT to EVRPC_INPUT and EVRPC_OUTPUT, but keep the INPUT/OUTPUT aliases on non-win32 platforms to maintain backwards compatibility.
...
svn:r852
2008-06-14 17:50:36 +00:00
Niels Provos
a6ce520cfb
allow min_heap_erase to be called on removed members; from liusifan
...
svn:r849
2008-06-12 14:43:35 +00:00
Niels Provos
344c2b56f1
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
2008-06-02 05:45:26 +00:00
Nick Mathewson
05965921ab
Add new functions to access backends by their features and to query the features of a backend.
...
svn:r842
2008-05-31 14:37:31 +00:00
Nick Mathewson
39400e68b6
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
2008-05-30 16:56:34 +00:00
Nick Mathewson
9ca7a3a3d6
Resolve two conflicts.
...
svn:r839
2008-05-30 16:19:01 +00:00
Niels Provos
2deb3ce061
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
2008-05-29 01:39:43 +00:00
Niels Provos
8b66f1bd4d
constify struct timeval *
...
svn:r836
2008-05-17 02:14:17 +00:00
Niels Provos
134344b79e
Fix use of freed memory in event_reinit; pointed out by Peter Postma
...
svn:r834
2008-05-16 01:55:40 +00:00
Niels Provos
ec3956ba48
fix connection keep-alive behavior for HTTP/1.0
...
svn:r822
2008-05-15 01:53:48 +00:00
Nick Mathewson
c6da86ffcb
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
2008-05-12 16:44:24 +00:00
Niels Provos
1080852e91
allow cancelation of user initiated http requests; this will allow cancelation of rpc requests eventually
...
svn:r812
2008-05-12 03:12:09 +00:00
Nick Mathewson
64ce799083
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
2008-05-08 23:57:31 +00:00
Nick Mathewson
a26442c5ac
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
2008-05-08 14:06:33 +00:00
Niels Provos
85ed713343
deprecate timeout_* event functions by moving them to event_compat.h
...
svn:r791
2008-05-08 07:00:16 +00:00
Niels Provos
de1c43926b
migrate evhttp to event2; accessors are still missing
...
svn:r790
2008-05-08 06:15:04 +00:00
Niels Provos
3f56e364b7
event_base_new_with_config() and related methods
...
svn:r789
2008-05-08 05:56:20 +00:00
Niels Provos
3b2022ef3a
provide an api for retrieving the supported event mechanisms
...
svn:r788
2008-05-08 05:33:15 +00:00
Nick Mathewson
68fecb7ab6
r19633@catbus: nickm | 2008-05-07 16:10:00 -0400
...
Fix bug 1958901: stop overriding CPPFLAGS in test directory.
svn:r783
2008-05-07 20:29:11 +00:00
Nick Mathewson
d0c3644e63
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
2008-05-05 15:45:30 +00:00
Niels Provos
f2a81fbc67
add support for virtual http hosts; no tests yet
...
svn:r771
2008-05-05 07:17:05 +00:00
Niels Provos
1d30750b1d
support for periodic timeouts
...
svn:r762
2008-05-03 22:10:09 +00:00
Niels Provos
8c750eaff8
separate signal events from io events
...
svn:r760
2008-05-03 21:37:33 +00:00
Niels Provos
45e6fb0dd2
cache clock_gettime/gettimeofday values in base
...
svn:r758
2008-05-03 18:23:44 +00:00
Niels Provos
f04497e493
introduce evbuffer_reserve_space() and evbuffer_commit_space() to make processing in filters more efficient
...
svn:r757
2008-05-03 03:05:28 +00:00
Niels Provos
becc89b778
introduce evbuffer_contiguous_space() and use it in the zlib filter test
...
svn:r756
2008-05-03 02:37:18 +00:00
Nick Mathewson
5fbc7f0aee
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
2008-05-02 16:28:25 +00:00
Niels Provos
85c4904bc5
allow connections to be removed from an rpc pool
...
svn:r753
2008-05-01 01:45:00 +00:00
Niels Provos
682adc443b
support input/output filters for bufferevents
...
svn:r748
2008-04-30 00:09:16 +00:00
Nick Mathewson
98dc98c59f
r15346@tombo: nickm | 2008-04-29 17:19:18 -0400
...
Remove the never-exported, never-used, never-threadsafe evhttp_hostportfile()
svn:r746
2008-04-29 21:19:26 +00:00
Nick Mathewson
9626a421de
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
2008-04-29 18:11:23 +00:00
Niels Provos
e44ef375ee
convert evhttp_connection to use bufferevents
...
svn:r742
2008-04-29 04:52:50 +00:00
Niels Provos
9485ff9a66
introduce bufferevent_setcb and bufferevent_setfd to allow better manipulation of bufferevents
...
svn:r737
2008-04-27 20:40:56 +00:00
Niels Provos
dd183f7c97
provide bufferevent_input and bufferevent_output without requiring knowledge of the structure
...
svn:r734
2008-04-27 00:32:10 +00:00
Niels Provos
f6c4017381
fix a bug in which bufferevent_write_buffer would not schedule a write event
...
svn:r733
2008-04-26 05:13:56 +00:00
Niels Provos
3a17aeed7a
fix a bug in buffrevent read water marks and add a test for them
...
svn:r731
2008-04-26 01:00:44 +00:00
Niels Provos
3278012f33
expose bufferevent_setwatermark via header files and fix high watermark on read
...
svn:r729
2008-04-26 00:35:17 +00:00
Niels Provos
89f63b205d
add bufferevent_read_buffer function
...
svn:r728
2008-04-25 02:44:46 +00:00
Nick Mathewson
94fb4d0a1e
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
2008-04-25 01:18:18 +00:00
Nick Mathewson
49868b618a
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
2008-04-25 01:18:08 +00:00
Nick Mathewson
8d2a61605b
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
2008-04-18 13:25:05 +00:00
Nick Mathewson
e688a88a82
r15216@tombo: nickm | 2008-04-17 13:55:05 -0400
...
Add new thread-safe interfaces to evdns functions. Needs review.
svn:r714
2008-04-17 17:55:35 +00:00
Nick Mathewson
fc41ffde4d
r15214@tombo: nickm | 2008-04-17 11:47:10 -0400
...
Make name_from_addr() threadsafe in http.c
svn:r713
2008-04-17 15:50:28 +00:00
Nick Mathewson
f9f4d4fe17
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
2008-04-11 20:02:50 +00:00
Nick Mathewson
44ceb945a3
r19305@catbus: nickm | 2008-04-10 15:34:10 -0400
...
Fix bug 1938754: do not warn when epoll_create() fails with ENOSYS.
svn:r706
2008-04-10 19:34:50 +00:00
Nick Mathewson
0c843507ab
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
2008-04-10 19:25:11 +00:00
Niels Provos
3ef1f50415
do not delete uninitialized timeout event in evdns
...
svn:r697
2008-03-31 00:33:46 +00:00
Niels Provos
8920ac4ddf
make RPC replies use application/octet-stream
...
svn:r694
2008-03-30 21:06:33 +00:00
Niels Provos
ca42671a14
make event methods static so that they are not exported; from Andrei Nigmatulin
...
svn:r692
2008-03-29 01:45:45 +00:00
Niels Provos
c182baca10
switch thread support so that locks get allocated as they are needed.
...
svn:r690
2008-03-10 03:17:20 +00:00