Log

Author Commit Date CI Message
Nick Mathewson 7a844735 2009-05-22T17:20:05 Fix some small win32 build issues on trunk. svn:r1306
Nick Mathewson 8c66eb2e 2009-05-22T14: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
Nick Mathewson 59cd4936 2009-05-22T14: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
Nick Mathewson 1ee65b7f 2009-05-21T20:59:17 Do not assume we know the value for FD_CLOEXEC. svn:r1301
Nick Mathewson 7e3ea82e 2009-05-21T20:59:09 Disallow backlog==0 in evconnlistener_new_bind(). svn:r1300
Nick Mathewson 8997f234 2009-05-21T20: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
Nick Mathewson 59484297 2009-05-20T12:24:13 Fix a deadlock: there were some LOCKs that should have been UNLOCKs. Resolves bug 2794244 svn:r1298
Nick Mathewson 66df9daf 2009-05-19T21:49:53 Add changelog for last commit svn:r1297
Nick Mathewson 23243b8a 2009-05-19T21:39:35 Replace reserve/commit with new iovec-based interface. Add a new evbuffer_peek. svn:r1296
Nick Mathewson ed1bbc7a 2009-05-18T16:15:56 Tweak the evconnlistener interface a little. svn:r1295
Nick Mathewson dc4c7b95 2009-05-15T22:44:18 Change the interface of evbuffer_add_reference: give the cleanup function more info. svn:r1294
Nick Mathewson bba69e03 2009-05-15T20: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
Nick Mathewson b4886ec8 2009-05-15T18:44:44 Trim 22 bytes from struct event on 32 bit platforms, more on 64-bit platforms. svn:r1292
Nick Mathewson 85b0a7a2 2009-05-15T01:38:23 We were distributing the wrong event-config.h with our source distributions. Fix that. svn:r1289
Nick Mathewson 27fef1ef 2009-05-14T18:06:41 Note problems with some newer evbuffer interfaces. svn:r1286
Nick Mathewson 3e759a01 2009-05-14T18:06:29 Actually, do not provide a compatibility name "EVBUFFER_CONNECTED": there is no old code that uses it. svn:r1285
Nick Mathewson 31d89f27 2009-05-13T20: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
Nick Mathewson 83f46e51 2009-05-13T20: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
Nick Mathewson f11dff2c 2009-05-07T03:45:51 Add and use locale-independent strcasecmp functions. svn:r1280
Nick Mathewson 89109010 2009-05-06T02:34:10 Addition to bufferevent_async unit test svn:r1279
Nick Mathewson a8bcbfd4 2009-05-06T02: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
Nick Mathewson fe47003d 2009-05-05T16: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
Nick Mathewson 02801e5b 2009-05-05T15:36:28 Add a trival start of a be_async test. svn:r1276
Nick Mathewson af8b8222 2009-05-05T15:30:58 Add missing include to buffer_iocp.c svn:r1275
Nick Mathewson b69d03b5 2009-05-05T14:18:14 Add a constructor for bufferevent_async. svn:r1274
Nick Mathewson 6b21fe2b 2009-05-05T03:01:24 oops; do not forget to distribute listener.h svn:r1273
Nick Mathewson 659d54d5 2009-05-05T02: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
Nick Mathewson 0fd70978 2009-05-05T01:09:03 Add an event_get_base() function to remove one more reason to include event_struct.h svn:r1271
Nick Mathewson 0e63e72a 2009-05-03T18:56:08 Nothing ever sets event_sigcb or event_gotsig any more: remove them. svn:r1270
Nick Mathewson bd73ed48 2009-05-02T16:24:23 Revise regress_pthreads.c to not use event_set svn:r1269
Nick Mathewson 5a3eddf0 2009-05-02T16:24:05 Use fewer _compat.h headers in our own code. svn:r1268
Nick Mathewson d5ca0763 2009-05-02T16:23:29 Move event_set() and friends to event2/event_compat.h. These functions are deprecated in favor of event_assign(). svn:r1267
Nick Mathewson 00ecd1d8 2009-05-02T16:23:08 Make evrpc use event2/rpc*.h, not evrpc.h svn:r1266
Nick Mathewson 7b24d72a 2009-05-02T16:22:55 Remove some duplicated includes in evdns.c svn:r1265
Nick Mathewson a109d95c 2009-05-02T16:11:06 Add changelog entry for vc++ fixes svn:r1264
Nick Mathewson 1aebcd50 2009-05-01T01:42:33 Initial core implementation of bufferevent_async.c svn:r1263
Nick Mathewson e865eb93 2009-05-01T00:54:14 More msvc build tweaks. svn:r1262
Nick Mathewson b2e8fd0e 2009-04-30T23:56:53 Apparently MSVC lacks a ssize_t. Define an ev_ssize_t for headers, and make ssize_t work elsewhere. svn:r1261
Nick Mathewson ebf29455 2009-04-30T23:49:15 Compilation fixes for vc++ 2008 express. Not the end of them. svn:r1260
Nick Mathewson 7f967807 2009-04-30T20:48:40 Initial unit test for overlapped evbuffer usage. It's lame, but it doesn't crash any more. svn:r1259
Nick Mathewson efc24f7c 2009-04-30T20:47:38 Get launch_read and launch_write to (apparently) work. svn:r1258
Nick Mathewson 23121bfb 2009-04-30T19:56:23 Fix a reversed check in upcast_evbuffer svn:r1257
Nick Mathewson 16612eb9 2009-04-30T19:20:42 Beef up the events in the last test a little. svn:r1256
Nick Mathewson ec146883 2009-04-30T19:05:43 Oops: actually commit changes to build and use regress_iocp svn:r1255
Nick Mathewson f1090833 2009-04-30T19: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
Nick Mathewson b45cead7 2009-04-30T18:05:33 Make environment-variable tests work on win32, which has only one method and lacks (un)setenv. svn:r1253
Nick Mathewson 24607a39 2009-04-29T20:48:43 Note a place we might do better about lock releasing. svn:r1252
Nick Mathewson 50e20fe0 2009-04-29T20:48:35 fix a typo in a comment svn:r1251
Nick Mathewson 37bc3466 2009-04-29T20:48:28 Catch attempts to event_base_once a persistent event. svn:r1250
Nick Mathewson 19594141 2009-04-29T20:48:21 Clarify semantics on event_pending() svn:r1249
Nick Mathewson 9ad45eef 2009-04-28T19:08:36 Patch from Eric Hopper: the test for EVENT_BASE_FLAG_IGNORE_ENV was inverted. svn:r1248
Nick Mathewson 586aa468 2009-04-28T19:08:27 Unit test for disabling events with EVENT_NO*, and for EVENT_BASE_FLAG_IGNORE_ENV. svn:r1247
Nick Mathewson 2ebfd3ba 2009-04-28T19:08:17 Oops. We never actually defined event_config_set_flag(). svn:r1246
Nick Mathewson 11cab334 2009-04-28T19:08:07 Fix compile: #elif FOO is not the same as #elif defined(FOO). svn:r1245
Niels Provos a146af1d 2009-04-25T00:15:55 move more code directly into evrpc.c; provide backwards compatible vararg macros svn:r1244
Niels Provos b228ff91 2009-04-25T00:15:31 remove vararg macros for accessing evrpc structs svn:r1243
Niels Provos f69cd80d 2009-04-25T00:15:09 refactor evrpc.h header filer svn:r1242
Niels Provos bbf79707 2009-04-25T00:14:58 refactor evrpc.h header filer svn:r1241
Niels Provos 5c4c13d8 2009-04-24T03:24:22 make sendfile work on freebsd svn:r1239
Nick Mathewson a5897917 2009-04-23T21:43:44 Changelog entry for r1237 svn:r1238
Nick Mathewson ec6bfd03 2009-04-23T21: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
Nick Mathewson faa756c7 2009-04-23T21:34:37 Oops. event_config.flags was never initialized. Bugfix on 2.0.1-alpha. Found by Victor Goya. svn:r1236
Nick Mathewson d70b0804 2009-04-23T18:08:42 Make main/methods test pass on systems where only one backend exists. svn:r1235
Nick Mathewson 1ad03264 2009-04-23T18:04:50 Fix win32 compilation issues. svn:r1234
Nick Mathewson c5c9589f 2009-04-23T06:27:58 Add missing case to make http.c compile with warnings enabled. svn:r1232
Nick Mathewson 9516df0e 2009-04-23T05: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
Nick Mathewson 8ba25b9e 2009-04-23T05:20:08 Add missing regress_minheap.c file svn:r1230
Nick Mathewson 5c104cef 2009-04-23T00:33:37 Add a randomized test for heap correctness. svn:r1229
Nick Mathewson df0617f2 2009-04-23T00: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
Nick Mathewson 8b7a3b36 2009-04-23T00: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
Nick Mathewson 0068c98a 2009-04-23T00:01:14 Make version test ignore the bottom byte of the version number. svn:r1225
Nick Mathewson e2b987ed 2009-04-23T00:01:05 bump the numeric version; this is not the same as the alpha. svn:r1224
Nick Mathewson b21be245 2009-04-23T00:00:55 Somehow free_active_base was using the socketpair, but not saying it needed it. How did this ever work? svn:r1223
Nick Mathewson 253151c5 2009-04-22T20:28:30 Detect and reject n_priorities less than 1. svn:r1222
Nick Mathewson 01bda2b8 2009-04-22T20:27:21 Add forgotten changelog. svn:r1221
Nick Mathewson 11ff74cf 2009-04-22T19:41:23 Add a flag to disable checking the EVENT_* environment variables. svn:r1220
Nick Mathewson 1f9c9e51 2009-04-22T15:38:50 Add a missing "static". svn:r1219
Nick Mathewson 133a015d 2009-04-21T18:48:05 Make sure the test case for mem_functions hits strdup too. svn:r1218
Nick Mathewson d3fbe7fa 2009-04-21T18:47:53 Do not free the signal index unless it was at some point allocated svn:r1217
Nick Mathewson 7f1855d0 2009-04-21T18:47:35 Add a basic test for set_mem_functions svn:r1216
Nick Mathewson ea8cc76c 2009-04-21T18:47:23 Fix the documentation of event_pending. svn:r1215
Nick Mathewson 386279d0 2009-04-21T18:47:02 Add a test for event_pending; especially the timeout part. svn:r1214
Nick Mathewson ff1f4295 2009-04-21T18:46:43 Unit tests for event_base_once. svn:r1213
Nick Mathewson ea664bf2 2009-04-21T18:46:30 Refactor test wrappers to divide legacy items from useful stuff. svn:r1212
Nick Mathewson 122e934e 2009-04-21T18:46:11 Add unit tests for version methods and feature-based backend selection svn:r1211
Nick Mathewson 7cf8a7b0 2009-04-21T18:45:59 Call the main testcases "main", not "legacy". svn:r1210
Nick Mathewson 1bb8e010 2009-04-21T16:17:59 Format microseconds correctly in bench_httpclient svn:r1209
Nick Mathewson eda27f95 2009-04-19T20:54:12 Update copyright notices, add some missing license statements svn:r1208
Niels Provos 0c15d6ab 2009-04-19T13:33:52 defer-internal.h was missing from dist; so our first tar ball did not even compile. ouch. svn:r1207
Nick Mathewson b7907a7b 2009-04-19T01:59:25 Note dns work in changelog and whatsnew svn:r1206
Nick Mathewson 2d9619d7 2009-04-19T01:59:09 Make dns callbacks run deferred svn:r1205
Nick Mathewson 327165b3 2009-04-19T01:58:54 Add locks to evdns. svn:r1204
Nick Mathewson ac3fc991 2009-04-19T01:58:41 Use new-style headers in evdns.c svn:r1203
Nick Mathewson 4d8919ec 2009-04-19T01:58:26 Do not try to double-free the nameserver in regression test svn:r1202
Nick Mathewson b182ed76 2009-04-18T18:28:18 More tweaks to http stress-tester svn:r1201
Nick Mathewson a835c7cf 2009-04-18T18:27:56 fix a misindent svn:r1200
Niels Provos f00f0c25 2009-04-18T04:34:45 make doxygen happier svn:r1199
Nick Mathewson e4f24219 2009-04-18T00:12:52 Add a new bench_httpclient for a trivial codecon demo. svn:r1198
Nick Mathewson a98a512b 2009-04-17T23:12:34 Add a generic way for any bufferevent to make its callback deferred svn:r1197
Nick Mathewson 99de1867 2009-04-17T23:07:48 Bump version to 2.0.1-alpha-dev so that nobody mistakes a svn checkout for 2.0.1-alpha. svn:r1196