kc3-lang/libevent/test/regress_bufferevent.c

Branch :


Log

Author Commit Date CI Message
0cb70e33 2011-10-26 10:17:21 Merge remote-tracking branch 'origin/patches-2.0'
3c824bd3 2011-10-24 13:18:09 Update copyright dates to 2011.
9f560bfa 2011-05-25 19:50:56 Use "_WIN32", not WIN32: it's standard and we don't need to fake it This patch was automatically generated with perl. Based on a patch by Peter Rosin.
06a714ff 2011-05-25 16:51:25 Fix new warnings from GCC 4.6
34b84b97 2010-11-03 14:38:45 Fix more wn64 warnings.
e5c214a4 2010-10-14 13:16:41 Fix -Wsigned-compare warnings in test/*
499452f4 2010-08-28 02:44:11 IOCP-related unit test tweaks
42090072 2010-09-06 15:47:07 Move the "function to getsockname() on a listener" to regress_testutils This reverts commit fab50488fcb741884ccdfa7b83643eac3e5c9cbf. The function was, on reflection, not important enough to break the feature freeze, since it's trivial to build on your own.
a97320ac 2010-09-03 18:48:31 Allow more than one copy of regression tests to run at once Mostly this was a matter of just removing all the hardwired ports in the test code. The http/connection_retry test is still a little screwy, though.
743f8665 2010-08-23 11:48:46 Honor NDEBUG; build without warnings with NDEBUG; make NDEBUG always-off in unit test code
ec347b92 2010-07-07 16: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.
17a8e2d7 2010-06-07 12:06:43 Add a function to retrieve the other side of a bufferevent pair
dfb75ab2 2010-05-12 15:38:28 Test the unlocked-deferred callback case of bufferevents
899c1dcc 2010-04-14 15:42:57 Replace EVUTIL_CLOSESOCKET macro with a function The EVUTIL_CLOSESOCKET() macro required you to include unistd.h in your source for POSIX. We might as well turn it into a function: an extra function call is going to be cheap in comparison with the system call. We retain the EVUTIL_CLOSESOCKET() macro as an alias for the new evutil_closesocket() function. (commit message from email by Nick and Sebastian)
274a7bd9 2010-03-13 00:55:39 Fix some memory leaks in the unit tests These don't matter except inasmuch as they give real memory leaks a place to hide. Found with valgrind
0d047c3f 2010-03-13 00:29:15 Fix an obnoxious typo in the bufferevent_timeout_filter test We were using the same bufferevent as the child of two filtering parents, orphaning another. This made one get freed twice, and the other not at all. Possible fix for bug 2963306 spotted by Doug Cuthbertson.
17efc1cd 2010-03-04 01:25:51 Update all our copyright notices to say "2010"
f3dfe462 2010-02-23 23:59:26 Use new timeval diff comparison function in bufferevent test
c02bfe12 2010-02-23 16:36:52 Add a test for timeouts on filtering bufferevents.
d3288293 2010-02-20 18:44:35 Provide consistent, tested semantics for bufferevent timeouts The different bufferevent implementations had different behavior for their timeouts. Some of them kept re-triggering the timeouts indefinitely; some disabled the event immediately the first time a timeout triggered. Some of them made the timeouts only count when the bufferevent was actively trying to read or write; some did not. The new behavior is modeled after old socket bufferevents, since they were here first and their behavior is relatively sane. Basically, each timeout disables the bufferevent's corresponding read or write operation when it fires. Timeouts are stopped whenever we suspend writing or reading, and reset whenever we unsuspend writing or reading. Calling bufferevent_enable resets a timeout, as does changing the timeout value.
e5bbd40a 2010-02-18 17:41:15 Clean up formatting: use tabs, not 8-spaces, to indent.
4a5b5343 2009-12-23 07:48:43 Do not ignore bufferevent_enable(EV_READ) before bufferevent_connect(). Previously, we weren't remembering that we wanted to re-add the read event once the connect was finished. Now we are.
07ce7f99 2009-11-18 21:17:00 Make our failing-connection bufferevent test more tolerant. I thought we had a way to do connect() that would never fail immediately, but always wait for a moment before failing. It turns out that on FreeBSD it can fail immediately. This is not FreeBSD's fault, or even a real bug anywhere but in the unit test. svn:r1549
d7d1f1da 2009-11-17 20:31:09 Move responsibility for IOCP callback into bufferevent_async. This patch from Chris Davis saves some callback depth, and adds proper ref-counting to bufferevents when there's a deferred evbuffer callback inflight. It could use a couple more comments to really nail down what its invariants are. svn:r1543
784b8773 2009-11-06 21:46:57 We do not work any more without an event-config.h; stop pretending that it is meaningful to check for HAVE_CONFIG_H svn:r1516
ac633aeb 2009-11-05 21:22:23 Fix some build warnings on MSVC, mostly related to signed/unsigned comparisons. svn:r1510
86db1c85 2009-11-04 05:19:26 Commit ConnectEx code to get connect working with async bufferevents. This is code by Chris Davis, with changes to get the unit tests failing less aggressively. The unit tests for this code do not completely pass yet; Chris is looking into that. If they aren't passing by the next release, I'll turn off this code. svn:r1499
5f1d6e64 2009-11-02 17:42:16 Add more IOCP tests. They might not pass yet. svn:r1487
7b107249 2009-10-23 22:07:05 Fix my fix for the bufferevent_connect_fail() test. svn:r1460
fdd11c00 2009-10-21 19:21:05 Make the bufferevent_connect_fail test faster on OSX. It seems that connecting to a listener that is bound but not accepting or listening doesn't give a 'connection refused' error on OSX, but rather makes the connect() time out after 75 seconds. I couldn't find any way to make the timout shorter. Fortunately, closing the listener after a second or so makes the desired error occur after another second or so. svn:r1457
4fbac2a5 2009-10-21 07:00:19 Test failing case of bufferevent_connect(). Code by Chris Davis. svn:r1455
7c688dd9 2009-07-31 14:41:45 New function to expose bufferevent.enabled svn:r1401
9cf4ee7e 2009-07-17 21:47:35 Fix a simple warning svn:r1362
c02b305a 2009-07-17 20:23:12 Trivial tests to exercise deferred and locking bufferevent code. These are done as variations of test_bufferevent_connect, since that one exercises event callbacks as well as read/write callbacks. The coverage for bufferevent.c is now up to about 87%, from about 70%. svn:r1358
9c2ecba7 2009-07-17 18:42:12 Oops. -1 is an integer, not a pointer. svn:r1352
d6f2e199 2009-07-17 18:38:46 Unit tests for bufferevent_get(fd|_underlying) svn:r1351
bbd14de0 2009-06-11 17:55:08 Add sometimes-needed header to regress_bufferevent.c svn:r1325
0b22ca19 2009-05-22 19:11:48 Use ev_ssize_t in place of ssize_t *everywhere*. svn:r1309
ed1bbc7a 2009-05-18 16:15:56 Tweak the evconnlistener interface a little. svn:r1295
83f46e51 2009-05-13 20:36:56 Do not use the "evbuffer_" prefix to denote parts of bufferevents. This is a bit of an interface doozy, but it's really needed in order to be able to document this stuff without apologizing it. This patch does the following renamings: evbuffercb -> bufferevent_data_cb everrorcb -> bufferevent_event_cb EVBUFFER_(READ,WRITE,...) -> BEV_EVENT_(...) EVBUFFER_(INPUT,OUTPUT) -> bufferevent_get_(input,output) All the old names are available in event2/bufferevent_compat.h svn:r1283
659d54d5 2009-05-05 02:59:26 Add new code to make and accept connections. This is stuff that it's easy to get wrong (as I noticed when writing bench_http), and that takes up a fair amount of space (see http.c). Also, it's something that we'll eventually want to abstract to use IOCP, where available. svn:r1272
a8f6d961 2009-04-17 06:56:09 Actually stop using EVBUFFER_LENGTH/DATA, and move them to buffer_compat.h svn:r1183
23085c92 2009-04-10 15:01:31 Add a linked-pair abstraction to bufferevents. The new bufferevent_pair abstraction works like a set of buferevent_sockets connected by a socketpair, except that it doesn't require a socketpair, and therefore doesn't need to get the kernel involved. It's also a good way to make sure that deferred callbacks work. It's a good use case for deferred callbacks: before I implemented them, the recursive relationship between the evbuffer callback and the read callback would make the unit tests overflow the stack. svn:r1152
68d0139f 2009-04-07 04:49:25 Refactor the zlib and pthreads tests to appear in the regular tinytest tree structure. svn:r1141
f9e4e0f9 2009-02-03 18:28:53 Move bufferevent tests to regress_bufferevent.c file. svn:r1101
ea4b8724 2009-02-02 19:22:13 checkpoint work on big bufferevent refactoring svn:r1095