647 Commits

Author SHA1 Message Date
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
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
a55a67d56e r15249@tombo: nickm | 2008-04-18 09:46:02 -0400
Avoid leaking a string in the unlikely OOM case from name_from_addr. spotted by niels.


svn:r724
2008-04-18 13:46:13 +00:00
Nick Mathewson
a404bf9877 r15245@tombo: nickm | 2008-04-18 09:27:50 -0400
Oops; use libevent-internal type instead of uint32_t.


svn:r722
2008-04-18 13:28:00 +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
a2d4a06298 r15228@tombo: nickm | 2008-04-17 15:27:39 -0400
Use new includes in evport.c and devpoll.c.  I do not have the hardware to compile these on; somebody else should test them.


svn:r720
2008-04-17 19:27:54 +00:00
Nick Mathewson
3eb21c0d33 r15226@tombo: nickm | 2008-04-17 15:25:25 -0400
Fix a couple of gcc warnings on 64-bit platforms


svn:r719
2008-04-17 19:25:35 +00:00
Nick Mathewson
8863ff7625 r15224@tombo: nickm | 2008-04-17 15:19:24 -0400
Oops. We need to make sure that strdup wasn't oom.


svn:r718
2008-04-17 19:19:36 +00:00
Nick Mathewson
ae09ac4ae0 r15220@tombo: nickm | 2008-04-17 15:16:02 -0400
Use new includes in more files still


svn:r717
2008-04-17 19:18:40 +00:00
Nick Mathewson
3f3a16757f r15219@tombo: nickm | 2008-04-17 15:12:17 -0400
Use new includes in epoll.c


svn:r716
2008-04-17 19:17:50 +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
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
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
f560198e45 r15192@tombo: nickm | 2008-04-16 15:59:51 -0400
Fix a compilation error on OSX.


svn:r710
2008-04-16 20:01:27 +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
812d2fd8fd proxy one more generator
svn:r701
2008-04-03 14:27:01 +00:00
Niels Provos
a7e395512e slight refactoring
svn:r700
2008-04-03 03:33:07 +00:00
Niels Provos
193c06a7ed fix a bug in which evbuffer_add_vfprintf would loop forever; avoid
fragmentation in evbuffer_expand by increasing the size of the last buffer
in the chain; as a result with have to keep track of the previous_to_last
chain;   provide a evbuffer_validate() function in the regression test to
make sure that all evbuffer are internally consistent.


svn:r699
2008-03-31 02:04:34 +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
502929cdf2 add a check that base != NULL for threading; might want to drop this later
svn:r696
2008-03-31 00:31:53 +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
cb50f615d4 rename lock create callback functions; as suggested by nick
svn:r691
2008-03-11 05:26:30 +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