Niels Provos
ef0221cc39
document chunked replies plus fix doxygen warnings
...
svn:r815
2008-05-13 03:42:47 +00:00
Nick Mathewson
0cafdeb6f5
Tweaks to make unit tests fail less badly on mingw on trunk.
...
svn:r814
2008-05-12 17:16: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
03fafae006
Make trunk event.c build happily on win32 under mingw.
...
svn:r811
2008-05-12 01:03:36 +00:00
Nick Mathewson
054159f59c
r19679@catbus: nickm | 2008-05-11 20:56:12 -0400
...
Windows does not have alloca().
svn:r810
2008-05-12 00:56:19 +00:00
Nick Mathewson
04366d5acc
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
2008-05-12 00:51:48 +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
687be1241b
dispatch the callbacks against the decoded uri to be more http compliant
...
svn:r806
2008-05-10 07:32:05 +00:00
Niels Provos
7bbe185b0e
evhttp_request_uri -> evhttp_request_get_uri
...
svn:r805
2008-05-10 06:32:53 +00:00
Niels Provos
950af18679
replace fnmatch with homegrown function
...
svn:r804
2008-05-10 05:58:17 +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
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
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
3d60bccc8e
r19656@catbus: nickm | 2008-05-08 10:25:08 -0400
...
forward-port: Remove #include "misc.h"s.
svn:r795
2008-05-08 14:25:44 +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
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