|
0d9d5cfe
|
2009-01-02T20:46:12
|
|
New functions in evutil to clone inet_pton and inet_ntop, with tests.
Adapted from Tor code.
svn:r983
|
|
eed23451
|
2008-12-25T16:20:45
|
|
forgot to re-enable dns tests
svn:r978
|
|
d776f846
|
2008-12-23T22:23:37
|
|
deprecate the usage of signal_{add,del,set} and name it evsignal_{add,del,set} instead; move the old definitions to compat
svn:r973
|
|
02b2b4d1
|
2008-12-23T16:37:01
|
|
Restructure the event backends so that they do not need to keep track of events themselves, as a side effect multiple events can use the same fd or signal.
svn:r972
|
|
ebcf5efc
|
2008-12-19T22:42:51
|
|
fix memory leaks in the regression tools; add another close detection test that validates that there are no dangling connections on the server
svn:r969
|
|
3b24f4ee
|
2008-07-25T00:48:30
|
|
another fix; we also need to remove the signal event from the queue
svn:r918
|
|
a4e2f52a
|
2008-07-20T23:31:28
|
|
add a signal and free the base for reinit test
svn:r915
|
|
f7e61870
|
2008-07-11T15:49:04
|
|
support multiple events listening on the same signal; make signals regular events that go on the same event queue
svn:r901
|
|
5512be01
|
2008-07-11T15:15:04
|
|
fix a bug where deleting signals with kqueue would delete subsequent adds
svn:r899
|
|
2f8708db
|
2008-06-24T18:04:41
|
|
ifdef out a whole bunch of sections; gettimeofday to evutil_gettimeofday
svn:r862
|
|
99a1063e
|
2008-06-21T02:21:25
|
|
support 64-bit integers in rpc structs
svn:r856
|
|
9586a1cb
|
2008-06-01T16:21:24
|
|
fix an evbuffer corruption when adding an empty evbuffer; from Scott Lamb
svn:r845
|
|
39400e68
|
2008-05-30T16:56:34
|
|
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
|
|
2deb3ce0
|
2008-05-29T01:39:43
|
|
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
|
|
134344b7
|
2008-05-16T01:55:40
|
|
Fix use of freed memory in event_reinit; pointed out by Peter Postma
svn:r834
|
|
7be8f13b
|
2008-05-14T15:56:17
|
|
r19736@catbus: nickm | 2008-05-14 11:50:49 -0400
Add casts to make some printf formats in regress.c happier.
svn:r821
|
|
0cafdeb6
|
2008-05-12T17:16:47
|
|
Tweaks to make unit tests fail less badly on mingw on trunk.
svn:r814
|
|
c6da86ff
|
2008-05-12T16:44:24
|
|
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
|
|
8acb80b4
|
2008-05-08T22:51:39
|
|
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
|
|
3f56e364
|
2008-05-08T05:56:20
|
|
event_base_new_with_config() and related methods
svn:r789
|
|
3b2022ef
|
2008-05-08T05:33:15
|
|
provide an api for retrieving the supported event mechanisms
svn:r788
|
|
caa368e1
|
2008-05-05T19:19:47
|
|
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
|
|
4e8a339e
|
2008-05-05T15:46:00
|
|
r19602@catbus: nickm | 2008-05-05 11:45:18 -0400
Make most of the tests use the new headers.
svn:r776
|
|
1d30750b
|
2008-05-03T22:10:09
|
|
support for periodic timeouts
svn:r762
|
|
f04497e4
|
2008-05-03T03:05:28
|
|
introduce evbuffer_reserve_space() and evbuffer_commit_space() to make processing in filters more efficient
svn:r757
|
|
ccb70f1b
|
2008-04-30T04:31:10
|
|
provide example bufferevent filters doing compression and decompression as additional regression test
svn:r751
|
|
c58a01a2
|
2008-04-30T00:50:20
|
|
fix regression test; oops
svn:r749
|
|
682adc44
|
2008-04-30T00:09:16
|
|
support input/output filters for bufferevents
svn:r748
|
|
3a17aeed
|
2008-04-26T01:00:44
|
|
fix a bug in buffrevent read water marks and add a test for them
svn:r731
|
|
89f63b20
|
2008-04-25T02:44:46
|
|
add bufferevent_read_buffer function
svn:r728
|
|
193c06a7
|
2008-03-31T02:04:34
|
|
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
|
|
558de9b3
|
2008-03-02T21:18:33
|
|
Provide OpenSSL style support for multiple threads accessing the same event_base
svn:r684
|
|
0e7cbe65
|
2008-02-28T17:38:52
|
|
r18482@catbus: nickm | 2008-02-28 12:38:40 -0500
Fix GCC 4.2 warnings; fix includes in subdirs.
svn:r675
|
|
5c70ea4c
|
2008-02-28T02:47:43
|
|
improved code for evbuffer; avoids memcpy
svn:r674
|
|
bd31d00f
|
2008-02-26T04:54:19
|
|
move signal callbacks closer to test code
svn:r670
|
|
67bf29ad
|
2008-02-23T06:02:04
|
|
simplify evbuffer by removing orig_buffer
svn:r654
|
|
11230f7e
|
2008-02-18T20:04:01
|
|
r18145@catbus: nickm | 2008-02-18 15:02:20 -0500
Stop using deprecated autoconf code to set integer types; detect actual files to include more thoroughly. This should make us work on solaris 9 again. This should be a backport candidate, if it works. Also, make all libevent code use ev_uint32_t etc, rather than uint_32_t.
svn:r649
|
|
807ab182
|
2008-02-16T20:49:47
|
|
r14211@tombo: nickm | 2008-02-16 15:28:54 -0500
Add new evutil_strtoll() function so we can apply 64-bit content-length patch from Scott Lamb in a portable way.
svn:r640
|
|
8c66d4e2
|
2008-01-26T07:29:57
|
|
remove pending timeouts on event_base_free
svn:r627
|
|
7e3a7af7
|
2007-12-24T23:59:41
|
|
support string arrays in event_rpcgen
svn:r613
|
|
68725dc8
|
2007-12-23T07:38:11
|
|
support integer arrays in rpc structures; this involved some refactoring of the event_rpcgen code, so that other types should be able to get arrays fairly easily
svn:r609
|
|
a5176a65
|
2007-12-20T22:45:30
|
|
Fix a win32 warning in regress.c
svn:r608
|
|
d4bdbca8
|
2007-12-18T03:54:19
|
|
add -Wstrict-aliasing and remove bogus evtag_test from event.h
svn:r602
|
|
d56a34e4
|
2007-12-16T19:33:52
|
|
r16991@catbus: nickm | 2007-12-06 15:05:56 -0500
Move event_init in regress.c to the function that actually messed up the current_base value.
svn:r598
|
|
ffd606cd
|
2007-12-13T06:14:18
|
|
prefix {encode,decode}_tag functions with evtag to avoid collisions
svn:r587
|
|
ba487199
|
2007-12-12T04:39:42
|
|
support for 32-bit tag numbers in rpc structures
svn:r583
|
|
fa89d661
|
2007-12-06T19:40:49
|
|
Adjust more unit tests to pass on win32.
svn:r580
|
|
1e435af1
|
2007-12-06T18:12:44
|
|
r15170@tombo: nickm | 2007-12-06 12:38:03 -0500
Fix a warning in regress.c
svn:r572
|
|
60103d25
|
2007-12-01T16:36:00
|
|
remove duplicate submit of test_evbuffer_readln
svn:r569
|
|
395dd198
|
2007-12-01T09:30:07
|
|
r15096@tombo: nickm | 2007-12-01 04:29:39 -0500
Test for corner-cases of re-adding non-persistent events from one another's handlers
svn:r568
|
|
d73cf1e1
|
2007-12-01T09:29:52
|
|
svn:r567
|
|
eeb5e4cd
|
2007-11-29T02:52:32
|
|
a bug in the regression test of event_reinit caused epoll to fail
svn:r560
|
|
e2e4cf1f
|
2007-11-27T06:11:28
|
|
more complete test for forking behavior
svn:r556
|
|
ce4ee418
|
2007-11-26T19:18:49
|
|
r16733@catbus: nickm | 2007-11-26 14:18:25 -0500
Add an --enable-gcc-warnings option (lifted from Tor) to the configure script. When provided, and when we are using GCC, we enable a bunch of extra GCC warnings in the compiler. Also, make the code all build happily with these warnings.
svn:r553
|
|
6773a597
|
2007-11-25T21:32:26
|
|
r14953@tombo: nickm | 2007-11-25 15:56:40 -0500
Replace evbuffer_readline with a more powerful evbuffer_readln that can handle more EOL styles, and that can give useful results when there are NUL characters inside the returned values. Includes regression tests.
svn:r550
|
|
2823cb05
|
2007-11-25T17:15:28
|
|
r14944@tombo: nickm | 2007-11-25 12:12:28 -0500
Make kqueue pass more unit tests.
svn:r544
|
|
88897852
|
2007-11-25T06:57:59
|
|
provide event_reinit() to reinitialized an event_base after fork - necessary for epoll/kqueue
svn:r539
|
|
8c3396b0
|
2007-11-22T16:41:29
|
|
r14935@tombo: nickm | 2007-11-22 11:36:54 -0500
Always set test_ok to zero after finishing a test, and before starting one. This turns up some failures we had been missing.
svn:r537
|
|
1c23e219
|
2007-11-17T22:21:42
|
|
r14931@tombo: nickm | 2007-11-17 17:21:09 -0500
Patch from Scott Lamb: Implement event_{base_}loopbreak. Includes documentation and tests. From sf.net Feature Request 1826546.
svn:r535
|
|
f586f428
|
2007-11-14T17:52:21
|
|
provide event_base_new() as a mechanism for not setting the current_global
svn:r529
|
|
321dfd55
|
2007-11-10T05:18:17
|
|
r16585@catbus: nickm | 2007-11-10 00:16:11 -0500
Patch from Christopher Layne: Make event_del() restore previous signal handlers, not the default.
svn:r506
|
|
f74e7258
|
2007-11-07T06:01:57
|
|
r16501@catbus: nickm | 2007-11-07 01:00:31 -0500
This is one of those patches which will either make matters far
simpler after the bugs shake out, or will get reverted pretty quick
once we realize that it is a stupid idea.
We now post-process the config.h file into a new event-config.h file,
whose macros are prefixed with _EVENT_ and which is thus safe for
headers to include. Using this, we can define replacement timeval
manipulation functions in evutil.h, and use them uniformly through our
code. We can also detect which headers are needful in event.h, and
include them as required.
This is also the perfect time to remove the long-deprecated acconfig.h
file, so that autoheader no longer warns.
Should resolve the following issues:
[ 1826530 ] Header files should have access to autoconf output.
[ 1826545 ] acconfig.h is deprecated.
[ 1826564 ] On some platforms, event.h can't be included alone.
svn:r492
|
|
206d4336
|
2007-11-07T05:02:21
|
|
r16497@catbus: nickm | 2007-11-07 00:01:02 -0500
Resolve issue 1826588: make event_base_free() succeed even if there are pending non-INTERNAL events still in the base. This can leak memory and fds if used injudiciously, but at least it no longer crashes.
svn:r490
|
|
22bd8b00
|
2007-11-03T23:54:27
|
|
remove last vestiges of RBTREE
svn:r471
|
|
c91794e2
|
2007-10-12T18:02:56
|
|
Instead of read/write in regress.c, use send/recv. Now all of the win32 regression tests pass, except for http and rpc.
svn:r461
|
|
a4cc3d14
|
2007-09-22T23:57:11
|
|
rename the rpc member from kill to attack; that way the
structure does not have the same name. might find some
bugs.
svn:r449
|
|
1e1f77c5
|
2007-09-20T19:08:20
|
|
Make the test/ subdirectory buildable under Windows. Well, mingw at least. The tests still don't all pass, but at least now we know that.
svn:r447
|
|
8ee20a3f
|
2007-09-09T02:15:34
|
|
fix memory leaks/unitialized memory found by valgrind
svn:r418
|
|
e678f009
|
2007-09-09T01:46:35
|
|
fix a couple memory leaks; time buffer marshaling
svn:r417
|
|
9c3ac4e4
|
2007-09-07T00:10:15
|
|
r14970@catbus: nickm | 2007-09-06 20:09:39 -0400
Fix compilation on Solaris; Patch from Magne Mahre.
svn:r409
|
|
67947ce3
|
2007-08-19T02:41:23
|
|
provide evhttp_new and evhttp_bind_socket instead of evhttp_start;
using evhttp_new, it is possible to associate an event_base with
the http server so that multi-threaded applications can have their
own http server per thread; add appropriate testing.
svn:r397
|
|
35983cd6
|
2007-08-16T21:12:53
|
|
r14618@catbus: nickm | 2007-08-16 17:11:47 -0400
In ANSI C, int func() is a function with unspecified arguments, whereas int func(void) is a function that takes no arguments. Using int func() to mean a function with no arguments is a C++ism, so let's not use or generate it.
svn:r395
|
|
21a7e7ed
|
2007-08-10T15:59:31
|
|
r14498@catbus: nickm | 2007-08-10 11:58:32 -0400
Fix compilation warnings in trunk on linux with gcc 4.1.2. In time-test.c, always include time.h, so that time() is defined. In test/Makefile.am, put -I../compat in CPPFLAGS, and fix a typo. In test/regress.c, cast unsigned char pointers to char* before passing them to str[n]cmp.
svn:r385
|
|
72c479e7
|
2007-07-30T23:54:25
|
|
remove c99 variable declarations; from Jan Kneschke
svn:r374
|
|
f0ff792a
|
2007-06-30T18:58:34
|
|
fixes from Joerg Sonnenberger:
http.c is a violation of the ctype(3) interface and an unused function.
test/regress_http.c are incorrect format strings.
test/regress.c uses raise(3) from signal.h.
evdns.c: evdns_error_strings is unused. The GET* macros can eat the
semicolon from the expression. pos is passed in as off_t, so just pass
that down. When assigning negativ values to unsigned variables, an
explicit cast is considered good style.
svn:r367
|
|
621a1b29
|
2007-05-23T05:31:33
|
|
support freeing of evrpc base
svn:r356
|
|
4408a5f8
|
2007-04-19T03:13:12
|
|
fix evbuffer_find off by one; found by Ken Cox; regression test by him
and fix by me
svn:r353
|
|
41b7cbc3
|
2007-03-10T06:37:53
|
|
more the signal base into the event base; this removes global state and makes signals
work better with threading; from Wouter Wijngaards
small fixes for kqueue and style by me
svn:r351
|
|
b5d2f9a2
|
2007-03-01T06:25:18
|
|
rolling back r339: evconfig.h does not work
svn:r341
|
|
8d94bd03
|
2007-02-28T04:29:18
|
|
signal fixes from scott lamb
svn:r340
|
|
127c260b
|
2007-02-28T04:02:29
|
|
make evconfig.h available as installed header file; not
really ideal but good enough for me; from Nick Mathewson
svn:r339
|
|
f554234f
|
2006-11-16T07:36:20
|
|
first stab at an rpc layer; this breaks the regression test.
svn:r254
|
|
64c76fbe
|
2006-09-03T21:12:59
|
|
typo in kqueue delete; from Bert JW Regeer
svn:r232
|
|
07c3fb50
|
2006-08-27T20:04:20
|
|
add a simple regression test for the DNS resolver; requires internet access.
do some KNF on evdns.c; add checks to prevent potential buffer overflows.
fix one memory leak.
svn:r230
|
|
6813af3f
|
2006-06-10T22:37:21
|
|
move http related prototypes to evhttp.h
svn:r214
|
|
147b71e3
|
2006-06-10T22:28:21
|
|
rename http.h to http-internal.h - i wish there were decent refactoring tools
for open source programmers.
svn:r213
|
|
60192b46
|
2006-02-26T20:18:35
|
|
improved/well-completely rewritten rtsig support by Mathew Mills; fix some
cases where regress would not pass on Linux
svn:r204
|
|
a3bb4a03
|
2006-01-22T05:08:50
|
|
I often need some very simple HTTP functionality, so this is a first stab
at integrating something really simple with HTTP. The interface is still
evolving as I start messing with it. Not all the interfaces are properly
exported yet.
I am also trying to figure out how to intelligently hide the details about
the different structures from users, so that that things can be changed
around later.
svn:r196
|
|
139e862e
|
2005-12-17T20:15:25
|
|
do not remove kq inkernel flag before event_del gets to it; bug reported by
Tassilo von Parseval; also add a test for this behavior.
svn:r190
|
|
8d1317d7
|
2005-12-06T03:26:28
|
|
add evbuffer_add_vprintf interface from artur grabowski; add some testing
svn:r188
|
|
50f7aaef
|
2005-09-09T06:56:12
|
|
make it compile on mac os x
svn:r183
|
|
3b9b3f6b
|
2005-09-02T05:34:14
|
|
don't spam on stderr
svn:r182
|
|
b4ab56dc
|
2005-08-28T23:48:16
|
|
support for arrays on structs.
svn:r178
|
|
c4e60994
|
2005-08-22T01:34:34
|
|
including the tagging code that is required by event_rpcgen.py; test the
new functionality.
svn:r172
|
|
bc9b2487
|
2005-04-04T00:10:17
|
|
make it compile on solaris
svn:r142
|
|
1e128e2d
|
2005-04-03T07:46:27
|
|
fix bug that broke poll/select stuff
svn:r141
|
|
d85d47f8
|
2005-03-29T07:16:52
|
|
devpoll improvements from Andrew Danforth <adanforth@gmail.com>
svn:r137
|
|
25646045
|
2004-12-01T20:04:54
|
|
provide more base-based functions :-)
svn:r125
|
|
8773c4c9
|
2004-11-25T09:50:18
|
|
make libevent thread-safe; first cut
svn:r122
|
|
fa6c304d
|
2004-09-19T21:08:09
|
|
support for event priorities; active events are scheduled into priority queues;
lower priorities get always processed before higher priorities
svn:r120
|