822 Commits

Author SHA1 Message Date
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
9586a1cbb0 fix an evbuffer corruption when adding an empty evbuffer; from Scott Lamb
svn:r845
2008-06-01 16:21:24 +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
9515c8076e Oops; add regress_et.c
svn:r841
2008-05-30 17:35:20 +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
bc5e27190f 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
2008-05-15 06:36:36 +00:00
Niels Provos
89a1512a74 close -> EVUTIL_CLOSESOCKET
svn:r832
2008-05-15 06:33:23 +00:00
Niels Provos
9e8688a749 windows does not have varargs macros, so this is all useless
svn:r831
2008-05-15 06:10:40 +00:00
Niels Provos
a35529c60f add the code here until we figure out how to generate it on windows
svn:r830
2008-05-15 06:03:23 +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
f9b4ee0aa4 replace write/read/close with send/recv/EVUTIL_CLOSESOCKET
svn:r828
2008-05-15 03:19:05 +00:00
Nick Mathewson
35245a6037 Minor project content tweaks
svn:r827
2008-05-15 03:16:34 +00:00
Niels Provos
90ddd91ff0 do not include sys/time.h on windows
svn:r826
2008-05-15 03:14:48 +00:00
Nick Mathewson
3ca22aa837 r19739@catbus: nickm | 2008-05-14 23:05:03 -0400
Use our offsetof; do not rely on platform offsetof


svn:r825
2008-05-15 03:05:10 +00:00
Niels Provos
c3c11f27b0 add a simple http server for potential benchmarking
svn:r823
2008-05-15 01:54:20 +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
7be8f13b95 r19736@catbus: nickm | 2008-05-14 11:50:49 -0400
Add casts to make some printf formats in regress.c happier.


svn:r821
2008-05-14 15:56:17 +00:00
Niels Provos
aa4b92574b move some structure definitions from evrpc.h to evrpc-internal.h
svn:r817
2008-05-13 05:05:30 +00:00
Niels Provos
1bce6f7434 use evhttp_connection_base_new()
svn:r816
2008-05-13 03:51:10 +00:00
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