|
f0bd83ea
|
2010-09-09T16:13:09
|
|
Bump to the latest version of tinytest
This lets us do without libevent-specific code in tinytest.c, and
lets us add a feature to skip individual tests from the command
line.
|
|
041989fb
|
2010-08-17T14:44:12
|
|
Rename regress_pthread.c to regress_thread.c
|
|
d74ae381
|
2010-08-16T12:38:22
|
|
Make the regress_pthread.c tests work on windows with current test APIs
|
|
ec347b92
|
2010-07-07T16:45:03
|
|
Move event-config.h to include/event2
This change means that all required include files are in event2, and
all files not in event2/* are optional.
|
|
cf249e7d
|
2010-07-19T13:44:56
|
|
Possible fix to 100% cpu usage with epoll and openssl
I'm running a fairly simple bit of test code using libevent2 with epoll and
openssl bufferevents and I've run into a 100% cpu usage problem.
Looking into it 100% usage was caused by epoll_wait constantly
returning write events on the openssl socket when it shouldn't really have
been looking for write events at all (N_ACTIVE_CALLBACKS() was returning 0
also).
Looking a bit deeper eventbuffer_openssl socket seems to be requesting
that the EV_WRITE event be removed when it should, but the event isn't
actually being removed from epoll.
Continuing to follow this I think I've found a bug in
event_changelist_del.
For evpoll event_del calls event_changelist_del which caches the change
which is then actioned later when evpoll_dispatch is called.
In event_changlist_del there is a check so that if the currently changed
action is an add then the cached action is changed to a no-op rather than a
delete (which makes sense). The problem arises if there are more than
two add or delete operations between calls to dispatch, in this case it's
possible that the delete is turned into a no-op when it shouldn't have
been.
For example starting with the event on, a delete followed by an add and
then another delete results in a no-op when it should have been a delete (I
added a fair bit of debug output that seems to confirm this behaviour).
I've applied a small change that checks the original old_event stored with
the change and only converts the delete to a no-op if the event isn't on in
old_event. This seems to have fixed my problem.
|
|
10c4c904
|
2010-04-12T12:50:17
|
|
Do not inhibit automake dependencies generation
It fixes make parallel builds.
|
|
b660edf9
|
2010-03-12T13:22:47
|
|
Remove redundant stuff from EXTRA_DIST
To a first approximation, sources that are mentioned anywhere in an
automake file don't need to get mentioned in EXTRA_DIST.
|
|
426c8fbe
|
2010-03-12T13:09:28
|
|
Support the standard 'make check' target in place of 'make verify'
Based on patch 2816088 from Zack Weinberg
|
|
b8226390
|
2010-01-14T16:53:25
|
|
move dns utility functions into a separate file so that we can use them for http testing
|
|
885b4273
|
2009-12-30T13:50:52
|
|
Fix test-ratelim compilation on Linux.
I'd forgotten to include time.h, and to link against libm.
|
|
f0c0124e
|
2009-12-23T07:54:13
|
|
Testing code for bufferevent rate-limiting.
This is not part of the regression tests, since running it necessarily
takes a while. There is a new test-ratelim test; run it with '-h'
for an argument to see its options.
|
|
8a3007ef
|
2009-07-30T17:01:38
|
|
More evconnlistener unit tests: bump its coverage from 71% to 83%.
svn:r1392
|
|
709c21c4
|
2009-07-28T04:03:57
|
|
Bufferevent support for openssl.
This code adds a new Bufferevent type that is only compiled when the
openssl library is present. It supports using an SSL object and an
event alert mechanism, which can either be an fd or an underlying
bufferevent.
There is still more work to do: the unit tests are incomplete, and we
need to support flush and shutdown much better. Sometimes events are
generated needlessly: this will hose performance.
There's a new encrypting proxy in sample/le-proxy.c.
This code has only been tested on OSX, and nowhere else.
svn:r1382
|
|
ec146883
|
2009-04-30T19:05:43
|
|
Oops: actually commit changes to build and use regress_iocp
svn:r1255
|
|
5c104cef
|
2009-04-23T00:33:37
|
|
Add a randomized test for heap correctness.
svn:r1229
|
|
e4f24219
|
2009-04-18T00:12:52
|
|
Add a new bench_httpclient for a trivial codecon demo.
svn:r1198
|
|
ec35eb55
|
2009-02-12T22:19:54
|
|
Make threading functions global, like the mm_ functions. Use the libevent_pthread.la library in regress_pthread.
svn:r1121
|
|
ea4b8724
|
2009-02-02T19:22:13
|
|
checkpoint work on big bufferevent refactoring
svn:r1095
|
|
a30c9eb1
|
2009-02-01T01:07:12
|
|
Move evbuffer tests into their own file.
svn:r1087
|
|
a8203b34
|
2009-01-29T23:19:57
|
|
Refactor unit tests using my spiffy new "tinytest" framework.
The big win here is that we can get process-level isolation.
This has been tested to work okay on at least Linux and Win32. Only
the tests in regress.c have been converted wrapped in the new wrapper
functions; the others are still on the old system.
svn:r1073
|
|
309fc7c4
|
2009-01-21T07:51:25
|
|
New functions to provide sane threading callbacks with pthreads and win32 threading implementations.
svn:r1031
|
|
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
|
|
ffb3966e
|
2008-11-27T19:34:07
|
|
minor compilation and regresson fixes; from Frank Denis
svn:r952
|
|
e736991a
|
2008-06-22T16:00:48
|
|
make it work with older versions of automake; from Scott Lamb
svn:r858
|
|
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
|
|
c3c11f27
|
2008-05-15T01:54:20
|
|
add a simple http server for potential benchmarking
svn:r823
|
|
68fecb7a
|
2008-05-07T20:29:11
|
|
r19633@catbus: nickm | 2008-05-07 16:10:00 -0400
Fix bug 1958901: stop overriding CPPFLAGS in test directory.
svn:r783
|
|
ccb70f1b
|
2008-04-30T04:31:10
|
|
provide example bufferevent filters doing compression and decompression as additional regression test
svn:r751
|
|
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
|
|
23ef0d09
|
2008-02-17T01:15:36
|
|
allow regression code to be build even without Python installed
svn:r645
|
|
9859bc78
|
2007-12-31T20:47:12
|
|
r15764@tombo: nickm | 2007-12-31 15:46:16 -0500
Forward-port from 1.4 branch: Make generated rpc files build-depend on event_rpcgen.
svn:r626
|
|
876c3af7
|
2007-11-30T02:21:33
|
|
add another benchmark that tests cascading events
svn:r566
|
|
568095bf
|
2007-11-12T05:34:10
|
|
srcdir for verify; from Christopher Layne
svn:r516
|
|
88173102
|
2007-11-03T23:45:38
|
|
split libevent into two extra libraries libevent_core and libevent_extra
svn:r469
|
|
c895ee46
|
2007-09-18T15:11:53
|
|
r15094@catbus: nickm | 2007-09-18 10:52:11 -0400
Patch from Christopher Lane: Make regress.gen.* buildable from outside source directory.
svn:r434
|
|
a36d4a93
|
2007-08-20T14:44:15
|
|
r14699@catbus: nickm | 2007-08-20 10:42:57 -0400
Use $top_srcdir and $srcdir variables to refer to source paths in Makefile.am. This makes it possible to build libevent from a separate directory. Patch from Kelly Anderson.
svn:r400
|
|
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
|
|
f554234f
|
2006-11-16T07:36:20
|
|
first stab at an rpc layer; this breaks the regression test.
svn:r254
|
|
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
|
|
ba7262eb
|
2006-07-17T00:33:57
|
|
reorganization of the http functionality; we separate http handling into a
connection object and a request object; also make it clear which buffers are
used for input and output; unittests not complete yet.
svn:r217
|
|
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
|
|
c4e60994
|
2005-08-22T01:34:34
|
|
including the tagging code that is required by event_rpcgen.py; test the
new functionality.
svn:r172
|
|
fdfa743c
|
2005-04-23T02:48:49
|
|
libtoolize; from Nick Mathewson
svn:r153
|
|
f5a62ed3
|
2004-12-01T19:59:00
|
|
make a separate verify target
svn:r124
|
|
6f2f98bd
|
2004-07-20T06:12:30
|
|
make it compile on solaris
svn:r112
|
|
ec70653b
|
2003-09-25T17:55:17
|
|
more tests
svn:r81
|
|
c61a2547
|
2003-09-25T03:30:49
|
|
__FUNCTION__ -> __func__
svn:r80
|
|
012a0b53
|
2003-03-10T05:39:41
|
|
add benchmark
svn:r59
|
|
d5009e8a
|
2003-03-09T23:29:26
|
|
-g
svn:r55
|
|
bedded82
|
2003-03-08T06:39:30
|
|
more comprehensive regression test
svn:r46
|
|
ea1d95d2
|
2003-03-08T05:24:26
|
|
automake-ify test dir, too
svn:r44
|