kc3-lang/libevent

Branch :


Log

Author Commit Date CI Message
5232cfa3 2009-05-25 23:11:20 Consistently say "eventcb" instead of "errorcb" svn:r1316
2f655f00 2009-05-25 23:10:47 Add documentation for bufferevent-internal.h stuff svn:r1315
34574db0 2009-05-25 23:10:23 Add a generic mechanism to implement timeouts in bufferevents. Paired and asynchronous bufferevents didn't do timeouts, and filtering bufferevents gave them funny semantics. Now they all should all work in a way consistent with what socket bufferevents do now: a [read/write] timeout triggers if [reading/writing] is enabled, and if the timeout is set, and the right amount of time passes without any data getting [added to the input buffer/drained from the output buffer]. svn:r1314
49f18a0a 2009-05-25 20:02:51 Add requirement in configure.in for autoconf 2.59c. Needed for ssize_t test. Spotted by Yang Hong. svn:r1313
dfe321e1 2009-05-22 20:11:29 Add missing windows include in time-test.c svn:r1311
e8343e9f 2009-05-22 19:11:59 work around missing __func__ in sample code svn:r1310
0b22ca19 2009-05-22 19:11:48 Use ev_ssize_t in place of ssize_t *everywhere*. svn:r1309
7289d7f8 2009-05-22 18:20:59 Fix a potentially very annoying evdns bug that we found in Tor. Generally speaking, it way better to event_assign() an event when you allocate it than to assign it before every time you event_add it: if it is already event_add()ed, the assign will mess it up so that it doesn't _look_ added, and event_add() will insert a second copy. Later, event_del() will only delete the second copy. Eventually, the event_base will have a dangling pointer to freed memory. Ouch! svn:r1307
7a844735 2009-05-22 17:20:05 Fix some small win32 build issues on trunk. svn:r1306
8c66eb2e 2009-05-22 14:48:40 Try to contain the failure when we are running without socketpair(). Some win32 systems (mostly those using Kaspersky, it would seem) prevent us from faking socketpair(). This makes our signal notification code just not work. Our response since 1.4 has been to assert. For users who would rather work without signals than not work at all, this has been a regression from 1.3e. This patch makes adding signal events fail in this case; there's no reason to kill the whole process. svn:r1303
59cd4936 2009-05-22 14:31:07 Do not free the event base lock until we are done removing all the events. Spotted by Joachim Bauch; fixes bug 2795402. svn:r1302
1ee65b7f 2009-05-21 20:59:17 Do not assume we know the value for FD_CLOEXEC. svn:r1301
7e3ea82e 2009-05-21 20:59:09 Disallow backlog==0 in evconnlistener_new_bind(). svn:r1300
8997f234 2009-05-21 20:59:00 Use the native "struct iovec" as our "struct evbuffer_iovec" when available, so we do not need to copy more pointers than necessary. svn:r1299
59484297 2009-05-20 12:24:13 Fix a deadlock: there were some LOCKs that should have been UNLOCKs. Resolves bug 2794244 svn:r1298
66df9daf 2009-05-19 21:49:53 Add changelog for last commit svn:r1297
23243b8a 2009-05-19 21:39:35 Replace reserve/commit with new iovec-based interface. Add a new evbuffer_peek. svn:r1296
ed1bbc7a 2009-05-18 16:15:56 Tweak the evconnlistener interface a little. svn:r1295
dc4c7b95 2009-05-15 22:44:18 Change the interface of evbuffer_add_reference: give the cleanup function more info. svn:r1294
bba69e03 2009-05-15 20:23:59 New semantics for evbuffer_cb_set_flags(). Previously, set_flags() would replace all previous user-visible flags. Now it just sets the flags, and there is a clear_flags() function to clear other flags. svn:r1293
b4886ec8 2009-05-15 18:44:44 Trim 22 bytes from struct event on 32 bit platforms, more on 64-bit platforms. svn:r1292
85b0a7a2 2009-05-15 01:38:23 We were distributing the wrong event-config.h with our source distributions. Fix that. svn:r1289
27fef1ef 2009-05-14 18:06:41 Note problems with some newer evbuffer interfaces. svn:r1286
3e759a01 2009-05-14 18:06:29 Actually, do not provide a compatibility name "EVBUFFER_CONNECTED": there is no old code that uses it. svn:r1285
31d89f27 2009-05-13 20:37:21 Add a "ctrl" mechanism to bufferevents for property access. OpenSSL uses something like this to implement get/set access for properties on its BIOs, so that it doesn't need to add a pair of get/set functions to the vtable struct for every new abstract property it provides an accessor for. Doing this lets us make bufferevent_setfd abstract, and implement an abstract bufferevent_getfd. svn:r1284
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
f11dff2c 2009-05-07 03:45:51 Add and use locale-independent strcasecmp functions. svn:r1280
89109010 2009-05-06 02:34:10 Addition to bufferevent_async unit test svn:r1279
a8bcbfd4 2009-05-06 02:33:37 Fix bufferevent_async to use lock/unlock, not unlock/unlock. You do NOT want to know what windows does when you unlock a lock that is already unlocked. svn:r1278
fe47003d 2009-05-05 16:52:37 Make unit tests for bufferevent_async compile and _almost_ work. Either I need to make the callbacks get deferred in a base with no events (doable), or I need to make it okay to call launch_read from inside the callback for read (tricky). svn:r1277
02801e5b 2009-05-05 15:36:28 Add a trival start of a be_async test. svn:r1276
af8b8222 2009-05-05 15:30:58 Add missing include to buffer_iocp.c svn:r1275
b69d03b5 2009-05-05 14:18:14 Add a constructor for bufferevent_async. svn:r1274
6b21fe2b 2009-05-05 03:01:24 oops; do not forget to distribute listener.h svn:r1273
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
0fd70978 2009-05-05 01:09:03 Add an event_get_base() function to remove one more reason to include event_struct.h svn:r1271
0e63e72a 2009-05-03 18:56:08 Nothing ever sets event_sigcb or event_gotsig any more: remove them. svn:r1270
bd73ed48 2009-05-02 16:24:23 Revise regress_pthreads.c to not use event_set svn:r1269
5a3eddf0 2009-05-02 16:24:05 Use fewer _compat.h headers in our own code. svn:r1268
d5ca0763 2009-05-02 16:23:29 Move event_set() and friends to event2/event_compat.h. These functions are deprecated in favor of event_assign(). svn:r1267
00ecd1d8 2009-05-02 16:23:08 Make evrpc use event2/rpc*.h, not evrpc.h svn:r1266
7b24d72a 2009-05-02 16:22:55 Remove some duplicated includes in evdns.c svn:r1265
a109d95c 2009-05-02 16:11:06 Add changelog entry for vc++ fixes svn:r1264
1aebcd50 2009-05-01 01:42:33 Initial core implementation of bufferevent_async.c svn:r1263
e865eb93 2009-05-01 00:54:14 More msvc build tweaks. svn:r1262
b2e8fd0e 2009-04-30 23:56:53 Apparently MSVC lacks a ssize_t. Define an ev_ssize_t for headers, and make ssize_t work elsewhere. svn:r1261
ebf29455 2009-04-30 23:49:15 Compilation fixes for vc++ 2008 express. Not the end of them. svn:r1260
7f967807 2009-04-30 20:48:40 Initial unit test for overlapped evbuffer usage. It's lame, but it doesn't crash any more. svn:r1259
efc24f7c 2009-04-30 20:47:38 Get launch_read and launch_write to (apparently) work. svn:r1258
23121bfb 2009-04-30 19:56:23 Fix a reversed check in upcast_evbuffer svn:r1257
16612eb9 2009-04-30 19:20:42 Beef up the events in the last test a little. svn:r1256
ec146883 2009-04-30 19:05:43 Oops: actually commit changes to build and use regress_iocp svn:r1255
f1090833 2009-04-30 19:04:44 First tests for IOCP loop, and related fixes. The fixes are: a shutdown mode that works, and a way to activate an arbitrary event_overlapped. svn:r1254
b45cead7 2009-04-30 18:05:33 Make environment-variable tests work on win32, which has only one method and lacks (un)setenv. svn:r1253
24607a39 2009-04-29 20:48:43 Note a place we might do better about lock releasing. svn:r1252
50e20fe0 2009-04-29 20:48:35 fix a typo in a comment svn:r1251
37bc3466 2009-04-29 20:48:28 Catch attempts to event_base_once a persistent event. svn:r1250
19594141 2009-04-29 20:48:21 Clarify semantics on event_pending() svn:r1249
9ad45eef 2009-04-28 19:08:36 Patch from Eric Hopper: the test for EVENT_BASE_FLAG_IGNORE_ENV was inverted. svn:r1248
586aa468 2009-04-28 19:08:27 Unit test for disabling events with EVENT_NO*, and for EVENT_BASE_FLAG_IGNORE_ENV. svn:r1247
2ebfd3ba 2009-04-28 19:08:17 Oops. We never actually defined event_config_set_flag(). svn:r1246
11cab334 2009-04-28 19:08:07 Fix compile: #elif FOO is not the same as #elif defined(FOO). svn:r1245
a146af1d 2009-04-25 00:15:55 move more code directly into evrpc.c; provide backwards compatible vararg macros svn:r1244
b228ff91 2009-04-25 00:15:31 remove vararg macros for accessing evrpc structs svn:r1243
f69cd80d 2009-04-25 00:15:09 refactor evrpc.h header filer svn:r1242
bbf79707 2009-04-25 00:14:58 refactor evrpc.h header filer svn:r1241
5c4c13d8 2009-04-24 03:24:22 make sendfile work on freebsd svn:r1239
a5897917 2009-04-23 21:43:44 Changelog entry for r1237 svn:r1238
ec6bfd03 2009-04-23 21:41:53 Fix for evbuffer_read() when all data fits in penultimate chain. Previously we were reading into the next-to-last chain, but incrementing the fullness of the last. Bug found by Victor Goya. svn:r1237
faa756c7 2009-04-23 21:34:37 Oops. event_config.flags was never initialized. Bugfix on 2.0.1-alpha. Found by Victor Goya. svn:r1236
d70b0804 2009-04-23 18:08:42 Make main/methods test pass on systems where only one backend exists. svn:r1235
1ad03264 2009-04-23 18:04:50 Fix win32 compilation issues. svn:r1234
c5c9589f 2009-04-23 06:27:58 Add missing case to make http.c compile with warnings enabled. svn:r1232
9516df0e 2009-04-23 05:40:06 Fix c89 bugs reported by Cory Stup. Others may remain. I wasn't able to get gcc --std=c89 to build libevent at all, so I don't know what compiler the original reporter is using here. Note that this change requires us to disable the part of our rpc code that uses variadic macros when using a non-gcc compiler. This is a problem if we want our rpc api to be portable. svn:r1231
8ba25b9e 2009-04-23 05:20:08 Add missing regress_minheap.c file svn:r1230
5c104cef 2009-04-23 00:33:37 Add a randomized test for heap correctness. svn:r1229
df0617f2 2009-04-23 00:21:23 Use signal.h, not sys/signal.h. This is patch 2673214 from mmadia. It is correct, since we unconditionally include signal.h in many other places, and only sometimes include sys/signal.h. It is necessary to compile on Haiku, I'm told. svn:r1228
8b7a3b36 2009-04-23 00:01:24 Fix min_heap_erase when we remove an element from the middle of the heap. Previously, we could lose the heap property when we removed an item whose parent was greater than the last element in the heap. We would replace the removed item with the last element, and consider shifting it down, but we wouldn't consider shifting it up. Patch from Marko Kreen. svn:r1226
0068c98a 2009-04-23 00:01:14 Make version test ignore the bottom byte of the version number. svn:r1225
e2b987ed 2009-04-23 00:01:05 bump the numeric version; this is not the same as the alpha. svn:r1224
b21be245 2009-04-23 00:00:55 Somehow free_active_base was using the socketpair, but not saying it needed it. How did this ever work? svn:r1223
253151c5 2009-04-22 20:28:30 Detect and reject n_priorities less than 1. svn:r1222
01bda2b8 2009-04-22 20:27:21 Add forgotten changelog. svn:r1221
11ff74cf 2009-04-22 19:41:23 Add a flag to disable checking the EVENT_* environment variables. svn:r1220
1f9c9e51 2009-04-22 15:38:50 Add a missing "static". svn:r1219
133a015d 2009-04-21 18:48:05 Make sure the test case for mem_functions hits strdup too. svn:r1218
d3fbe7fa 2009-04-21 18:47:53 Do not free the signal index unless it was at some point allocated svn:r1217
7f1855d0 2009-04-21 18:47:35 Add a basic test for set_mem_functions svn:r1216
ea8cc76c 2009-04-21 18:47:23 Fix the documentation of event_pending. svn:r1215
386279d0 2009-04-21 18:47:02 Add a test for event_pending; especially the timeout part. svn:r1214
ff1f4295 2009-04-21 18:46:43 Unit tests for event_base_once. svn:r1213
ea664bf2 2009-04-21 18:46:30 Refactor test wrappers to divide legacy items from useful stuff. svn:r1212
122e934e 2009-04-21 18:46:11 Add unit tests for version methods and feature-based backend selection svn:r1211
7cf8a7b0 2009-04-21 18:45:59 Call the main testcases "main", not "legacy". svn:r1210
1bb8e010 2009-04-21 16:17:59 Format microseconds correctly in bench_httpclient svn:r1209
eda27f95 2009-04-19 20:54:12 Update copyright notices, add some missing license statements svn:r1208
0c15d6ab 2009-04-19 13:33:52 defer-internal.h was missing from dist; so our first tar ball did not even compile. ouch. svn:r1207
b7907a7b 2009-04-19 01:59:25 Note dns work in changelog and whatsnew svn:r1206
2d9619d7 2009-04-19 01:59:09 Make dns callbacks run deferred svn:r1205
327165b3 2009-04-19 01:58:54 Add locks to evdns. svn:r1204