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
f2d65f8a9c
r19634@catbus: nickm | 2008-05-07 16:10:37 -0400
...
the C syntax is fn(void), not fn().
svn:r784
2008-05-07 20:29:33 +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
Niels Provos
300a4efb2d
test virtual hosts
...
svn:r780
2008-05-07 01:52:24 +00:00
Nick Mathewson
caa368e1cc
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
2008-05-05 19:19:47 +00:00
Nick Mathewson
803dc36ad8
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
2008-05-05 19:19:08 +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
4e8a339ef7
r19602@catbus: nickm | 2008-05-05 11:45:18 -0400
...
Make most of the tests use the new headers.
svn:r776
2008-05-05 15:46:00 +00:00
Nick Mathewson
bb37fbb22e
r19601@catbus: nickm | 2008-05-05 11:45:04 -0400
...
Make event_rpcgen.py use the new headers.
svn:r775
2008-05-05 15:45:47 +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
Nick Mathewson
891dba4376
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
2008-05-05 15:00:53 +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
f940eb4b8d
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
2008-05-04 22:21:29 +00:00
Niels Provos
5786d5255a
improve doxygen documentation for evhttp.h - still incomplete
...
svn:r768
2008-05-04 20:05:39 +00:00
Niels Provos
36d7ab5082
trust in naming: rename evbuffer.c to bufferevent.c
...
svn:r767
2008-05-04 18:31:21 +00:00
Nick Mathewson
40a44b36bb
r19564@catbus: nickm | 2008-05-04 13:23:10 -0400
...
Fix compile with --enable-gcc-warnings and clock_gettime()
svn:r766
2008-05-04 17:23:20 +00:00
Niels Provos
a83caa6b29
remove too agressive assert
...
svn:r765
2008-05-04 03:52:24 +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
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
e8f450f232
expose a way to create the rpc context manually
...
svn:r754
2008-05-01 02:08:26 +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
d76cca7273
fix missing printf format argument
...
svn:r752
2008-04-30 04:36:26 +00:00
Niels Provos
ccb70f1bc7
provide example bufferevent filters doing compression and decompression as additional regression test
...
svn:r751
2008-04-30 04:31:10 +00:00
Niels Provos
522480f5ce
improve documentation for bufferevent.h
...
svn:r750
2008-04-30 01:01:57 +00:00
Niels Provos
c58a01a23b
fix regression test; oops
...
svn:r749
2008-04-30 00:50:20 +00:00
Niels Provos
682adc443b
support input/output filters for bufferevents
...
svn:r748
2008-04-30 00:09:16 +00:00
Niels Provos
28add6b9e2
add more header files to doxygen
...
svn:r747
2008-04-29 23:18:04 +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
Nick Mathewson
4cff82bb4f
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
2008-04-29 18:11:10 +00:00
Niels Provos
e44ef375ee
convert evhttp_connection to use bufferevents
...
svn:r742
2008-04-29 04:52:50 +00:00
Niels Provos
0ec09b5507
also try client connection for chunked requests
...
svn:r741
2008-04-29 04:35:26 +00:00
Niels Provos
9c480533bf
test the server side of sending chunked replies
...
svn:r740
2008-04-29 02:33:27 +00:00
Niels Provos
72a3902e5c
test some primitives from http.c
...
svn:r739
2008-04-29 00:24:00 +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
22c8a40402
test connection retry logic
...
svn:r736
2008-04-27 20:04:33 +00:00
Niels Provos
7b29ad57d9
test server behavior when connection times out while reading the headers
...
svn:r735
2008-04-27 19:41:26 +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
fe2e7307f3
r15320@tombo: nickm | 2008-04-24 21:29:06 -0400
...
Yes, niels says this is safe.
svn:r727
2008-04-25 01:29:15 +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