Niels Provos
5792d42f0f
Allow setting of local port for evhttp connections to support millions of connections from a single system; from Richard Jones
...
svn:r948
2008-11-16 23:22:14 +00:00
Nick Mathewson
de069b9977
On win32, errno is not the last socket error. Worse, WSAGetLastError() is not the last socket error sometimes (i.e., EWOULDBLOCK). Also, strerror() does not handle winsock errors. Therefore, event_err() and event_warn() are completely wrong for windows socket errors. Fix that.
...
svn:r936
2008-09-05 16:29:56 +00:00
Niels Provos
f7e61870e9
support multiple events listening on the same signal; make signals regular events that go on the same event queue
...
svn:r901
2008-07-11 15:49:04 +00:00
Niels Provos
9998c0cbc8
correct handling of trailing headers in chunked replies; from Scott Lamb.
...
svn:r887
2008-06-26 00:40:57 +00:00
Niels Provos
21f76156b1
change min_heap_idx to signed
...
svn:r883
2008-06-25 16:32:47 +00:00
Niels Provos
99a1063e73
support 64-bit integers in rpc structs
...
svn:r856
2008-06-21 02:21:25 +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
Niels Provos
480d8142b8
do not define a variable in a header file; it will lead to duplicate symbols when linking
...
svn:r844
2008-06-01 01:19:08 +00:00
Niels Provos
f9707a01e5
we need to declare the enum first before it can be used; c++ compilation errors
...
svn:r843
2008-05-31 18:57:21 +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
Niels Provos
8b66f1bd4d
constify struct timeval *
...
svn:r836
2008-05-17 02:14:17 +00:00
Nick Mathewson
a68de2525d
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
2008-05-15 03:49:03 +00:00
Niels Provos
ef0221cc39
document chunked replies plus fix doxygen warnings
...
svn:r815
2008-05-13 03:42:47 +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
6bf1ca780c
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
2008-05-12 00:40:04 +00:00
Niels Provos
a57767faf8
more accessors for evhttp_request
...
svn:r807
2008-05-11 16:22:35 +00:00
Niels Provos
7bbe185b0e
evhttp_request_uri -> evhttp_request_get_uri
...
svn:r805
2008-05-10 06:32:53 +00:00
Nick Mathewson
7868ab5a43
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
2008-05-09 04:00:17 +00:00
Nick Mathewson
8acb80b4f9
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
2008-05-08 22:51:39 +00:00
Nick Mathewson
7defe4cbc1
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
2008-05-08 15:55:09 +00:00
Nick Mathewson
a29f7eefac
svn:r797
2008-05-08 15:38: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
0a804f3c83
r19641@catbus: nickm | 2008-05-07 17:51:26 -0400
...
Forward-port: Fix win32 vc-2005 build.
svn:r786
2008-05-07 21:51:49 +00:00
Nick Mathewson
957e9fd829
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
2008-05-05 17:49:52 +00:00
Nick Mathewson
bc6da5ea79
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
2008-05-05 15:45:39 +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
181007b9cf
make event_assign void; it cannot return an error
...
svn:r763
2008-05-03 22:14:44 +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
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
522480f5ce
improve documentation for bufferevent.h
...
svn:r750
2008-04-30 01:01:57 +00:00
Niels Provos
682adc443b
support input/output filters for bufferevents
...
svn:r748
2008-04-30 00:09:16 +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
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
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
beb39f5770
r15218@tombo: nickm | 2008-04-17 15:10:13 -0400
...
Add a missing #include <stdarg.h>
svn:r715
2008-04-17 19:16:30 +00:00
Nick Mathewson
963ae2cf42
r15212@tombo: nickm | 2008-04-16 17:01:21 -0400
...
Remove some needless includes
svn:r712
2008-04-16 21:01:31 +00:00
Nick Mathewson
0ac73078ed
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
2008-04-16 20:01:51 +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