Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| 9852107f | 2012-07-26 10:43:13 | Merge remote-tracking branch 'origin/patches-2.0' Conflicts: buffer.c http.c | ||
| a0912e32 | 2012-07-26 10:39:05 | Check more setsockopt return values when binding sockets. Found by coverity | ||
| a1a0e675 | 2012-07-26 10:38:29 | memset sockaddr_in before using it. Found by coverity. | ||
| a2006c00 | 2012-07-26 10:37:47 | Move assignment outside tt_assert in ssl unit tests. Appeases coverity. | ||
| b9e73297 | 2012-07-26 10:37:13 | Add checks to various return values in unit tests. Found by coverity | ||
| 6a4ec5c2 | 2012-07-26 10:34:06 | Avoid possible needless call to writev. Found by coverity. | ||
| 6355b2a4 | 2012-07-26 10:16:47 | Remove unused variable; spotted by coverity | ||
| 225344cf | 2012-07-26 10:11:17 | Fix a shadowed variable in addfile_test_readcb; found by coverity | ||
| 92817a11 | 2012-07-26 10:11:00 | Avoid memory leak in test_event_calloc unit test; found by coverity | ||
| aa501e1a | 2012-07-26 10:10:35 | Add checks for functions in test-ratelim.c; found by Coverity | ||
| 7ef04e4b | 2012-07-26 10:09:13 | Merge remote-tracking branch 'origin/patches-2.0' Conflicts: configure.in test/regress_buffer.c test/regress_dns.c | ||
| 3cde5bf5 | 2012-07-26 10:04:43 | Avoid more crashes/bad calls in unit tests; found by coverity | ||
| f021c3d7 | 2012-07-26 09:59:47 | Add some missing null checks to unit tests; found by coverity | ||
| 270f279f | 2012-07-26 09:53:20 | Fix resource leaks in the unit tests; found by coverity | ||
| 4f3732d7 | 2012-07-26 09:35:43 | Fix various check-after-dereference issues in unit tests: found by coverity | ||
| f1ce15d9 | 2012-07-25 16:18:33 | Set umask before calling mkstemp in unit tests. Found by coverity | ||
| 13525c50 | 2012-07-25 16:07:22 | Fix another possible uninitialized read in dns regression tests. Found by coverity. | ||
| 6fdbf3a2 | 2012-07-25 16:06:51 | Merge remote-tracking branch 'origin/patches-2.0' | ||
| 2259777c | 2012-07-25 16:05:36 | Fix possible uninitialized read in dns regression tests. Found by coverity. | ||
| 55533467 | 2012-07-25 15:59:50 | Remove deadcode in http regression tests. Found by coverity. | ||
| 3d83f94d | 2012-07-23 16:32:43 | Add process.h include to evutil.c for _getpid | ||
| 52a0039b | 2012-07-20 15:36:15 | Fix tinytset_skip to work with new tinytest_set_flag_ signature | ||
| cdb47db9 | 2012-07-20 15:35:33 | Fix compile error in win32 listener.c SF issue 3546388 | ||
| 01b65ab8 | 2012-07-17 11:10:44 | Merge remote-tracking branch 'origin/patches-2.0' | ||
| 11c8b317 | 2012-07-17 11:08:25 | Fix a memory leak on error in evhttp_uriencode If we ran out of memory in evhttp_uriencode when allocating the output buffer, we would neglect to call evbuffer_free() on our temporary buffer. Now we always free the temporary buffer. Fixes sourceforge issue 3539887. Thanks to Andrew Cox for reporting this one. | ||
| 6c14d564 | 2012-07-16 15:44:07 | Merge remote-tracking branch 'origin/patches-2.0' Conflicts: event.c win32select.c | ||
| 160e58b6 | 2012-07-16 15:34:18 | Win32: avoid crash when waiting forever on zero fds. | ||
| 2b6fe8bb | 2012-06-29 12:47:51 | Make load-dependent monotonic timer tests off-by-default You can reenable them with @all, or say @fine_timing just to get them. | ||
| 56710337 | 2012-06-29 12:47:39 | Avoid (unlikely) overflow in bench_httpclient.c | ||
| c8009d29 | 2012-06-29 12:47:03 | Check return value of write() in regress.c | ||
| 59f21fd8 | 2012-06-28 16:52:21 | Merge branch '21_nonrecursive' | ||
| f2cea873 | 2012-06-28 13:18:28 | Make all tests that hit the network disabled by default To run only these tests, run test/regress with @live_net. To run all tests, run test/regress with @all. | ||
| ef7c4f79 | 2012-06-28 12:58:46 | Update to latest tinytest (911b4f0349377) | ||
| def3b834 | 2012-06-28 12:57:58 | Make test_evutil_monotonic a little more tolerant | ||
| 9cd5acb5 | 2012-06-28 12:00:57 | Make th_base_lock nonrecursive This is necessary for making some thread libraries work with event.c, and might get better performance with others. The biggest change required here was that we needed to make some internal code that had previously called event_add and event_del call the nolock variants. | ||
| 108896ab | 2012-06-28 11:42:25 | Merge branch 'master' of ssh://github.com/libevent/libevent | ||
| e2d7d98d | 2012-06-28 11:37:45 | remove a now-unused var in thread_deferred_cb_skew test | ||
| 8a739b34 | 2012-06-28 11:36:52 | Merge branch '21_event_callback_v3' | ||
| ea92fba3 | 2012-06-25 13:55:45 | Avoid a resource leak on error in http client benchmark | ||
| 0de587f4 | 2012-06-25 12:19:26 | Simplify and correct evutil_open_closeonexec_ The original code needlessly called open in its two- or three- argument format depending on the O_CREAT flag; this should not be needed. The code also leaked an fd if fcntl() failed. Reported by Dave Hart. | ||
| 1aaf9f01 | 2012-06-18 10:31:38 | Avoid giving a spurious warning when timerfd support is unavailable We forgot to do the obligatory "Check if there is no syscall there" dance when calling timerfd_create(). (Commit message by Nick) | ||
| be7a95c6 | 2012-06-15 01:01:05 | Make event_pending() threadsafe. (Commit message by Nick) | ||
| 117e3273 | 2012-06-14 13:25:10 | Add GCC annotations so that the vsprintf functions get checked properly | ||
| e7bf4c84 | 2012-06-08 16:50:25 | Make the Makefile.nmake warning slightly less dire | ||
| 0ba0683b | 2012-06-08 16:45:01 | Add evutil_time.obj to Makefile.nmake | ||
| 60f65403 | 2012-06-06 14:10:11 | Merge pull request #57 from rosslagerwall/memleak Fix a couple of memory leaks (found with Valgrind). | ||
| 90daab61 | 2012-06-06 17:06:57 | Merge remote-tracking branch 'origin/patches-2.0' | ||
| 3b2529ac | 2012-06-06 21:57:12 | Fix a couple of memory leaks (found with Valgrind). | ||
| 0bbd850c | 2012-06-04 14:16:02 | Merge pull request #56 from rosslagerwall/fix-comment Fix a comment in test-fdleak after 077c7e949. | ||
| 3881d8fd | 2012-06-03 15:19:53 | Fix a comment in test-fdleak after 077c7e949. | ||
| f3bd3672 | 2012-06-01 09:50:07 | Merge remote-tracking branch 'origin/patches-2.0' | ||
| fcec3e80 | 2012-06-01 05:23:29 | Correctly check for arc4random_buf Apparently it's necssary to do an explicit comparison with NULL here. This also gets rid of a compile warning | ||
| f1284e73 | 2012-05-31 02:52:37 | Merge remote-tracking branch 'origin/patches-2.0' Conflicts: evutil_rand.c Had conflicts with _EVENT_ -> EVENT__ change. | ||
| bff5f940 | 2012-05-29 12:39:12 | check for arc4random_buf at runtime, on OS X (Tweaked by nickm: Fix up the arcr4andom_buf OSX hack so that the fallback case isn't compiled into the code when we have arc4random_buf() and we are not on OSX. Also add a comment explaining what's up.) | ||
| 76b994ac | 2012-05-21 10:59:20 | Merge pull request #54 from rosslagerwall/configure-dup Remove unnecessary code in configure.in. | ||
| 9444524f | 2012-05-14 11:10:51 | Make it more clear that NOLOCK means "I promise, no multithreading" | ||
| 6fab9eef | 2012-05-14 10:58:01 | Add caveat to docs about bufferevent_free() with data in outbuf Based on libevent-users thread wtih Alexander Klauer | ||
| 371efebd | 2012-05-14 10:55:27 | Be more clear that LEV_OPT_DEFERRED_ACCEPT has tricky prereqs | ||
| e65914fd | 2012-05-12 08:38:19 | Remove unnecessary code in configure.in. | ||
| bd395549 | 2012-05-08 18:04:19 | Add a bufferevent_get_priority() function | ||
| f90e2559 | 2012-05-08 17:46:46 | New event_get_priority() function to return an event's priority | ||
| 7d6aa5ee | 2012-05-09 12:05:07 | Add an event_base_loopcontinue() to tell libevent to rescan right away | ||
| c0e425ab | 2012-05-09 11:06:06 | Restore our priority-inversion-prevention code with deferreds Back when deferred_cb stuff had its own queue, the queue was always executed, but we never ran more than 16 callbacks per iteration. That made for two problems: 1: Because deferred_cb stuff would always run, and had no priority, it could cause priority inversion. 2: It doesn't respect the max_dispatch_interval code. Then, when I refactored deferred_cb to be a special case of event_callback, that solved the above issues, but made for two more issues: 3: Because deferred_cb stuff would always get the default priority, it could could low-priority bufferevents to get too much priority. 4: With code like bufferevent_pair, it's easy to get into a situation where two deferreds keep adding one another, preventing the event loop from ever actually scanning for more events. This commit fixes the above by giving deferreds a better notion of priorities, and by limiting the number of deferreds that can be added to the _current_ loop iteration's active queues. (Extra deferreds are put into the active_later state.) That isn't an all-purpose priority inversion solution, of course: for that, you may need to mess around with max_dispatch_interval. | ||
| 581b5beb | 2012-05-09 10:50:07 | Give event_base_process_active a single exit path | ||
| c46cb9c3 | 2012-05-09 10:49:28 | Make event_base_getnpriorities work with old "implicit base" code | ||
| a4079aa8 | 2012-04-06 11:05:35 | Replace more deferred_cb names with event_callback | ||
| ae2b84b2 | 2012-04-06 04:33:19 | Replace deferred_cbs with event_callback-based implementation. | ||
| fec8bae2 | 2012-04-06 03:15:50 | event_base_assert_ok: check value of event_active_count for correctness | ||
| 745a63db | 2012-04-06 03:00:40 | Add "active later" event_callbacks to supersede deferred An event or event callback can now be in an additional state: "active later". When an event is in this state, it will become active the next time we run through the event loop. This lets us do what we wanted to with deferred callbacks: make a type of active thing that avoids infinite circular regress in a way that starves other events or exhausts the stack. It improves on deferred callbacks by respecting priorities, and by having a non-kludgy way to avoid event starvation. | ||
| 9889a3d8 | 2012-04-05 12:56:07 | Remove the unused bits from EVLIST_ALL | ||
| cba59e53 | 2012-04-05 12:38:18 | Refactor the callback part of an event into its own event_callback type This shouldn't have any visible effect, but it's necessary or advisible for a few changes and cleanups I would like to make, including: * Replacing the deferred queue with a type that works more as if it were an event. * Introducing a useful "activate this on the next round through the event loop" state for events and deferreds. * Adding an "on until further notice" status for events, to allow a saner win32-hybrid approach. * Eventually, making all user callbacks first-class things with event-like semantics. | ||
| 981aa0ef | 2012-05-03 16:37:39 | Merge remote-tracking branch 'origin/patches-2.0' | ||
| faa92253 | 2012-05-03 16:34:29 | Bump version to 2.0.19-stable-dev | ||
| 8a9b0cdf | 2012-05-03 12:33:36 | Increment version to 2.0.19-stable | ||
| e0aa0866 | 2012-05-03 12:21:57 | Merge remote-tracking branch 'github/patches-2.0' Conflicts: test/regress.c | ||
| e06206eb | 2012-05-03 12:15:11 | Oops; fix the *right* windows compile issue | ||
| be7a0be8 | 2012-05-03 12:05:52 | Fix win32 build issues: sleep, pid_t | ||
| 4b70286e | 2012-05-02 17:12:23 | Merge remote-tracking branch 'origin/patches-2.0' Conflicts: ChangeLog README evdns.c sample/dns-example.c | ||
| cecb111b | 2012-05-02 17:09:11 | Start changelog for 2.0.19-stable | ||
| 265e6779 | 2012-05-02 16:52:27 | Fix evdns build with threads disabled The last evdns change apparently broke it, by using a "base" variable that we were only declaring with threads turned on. | ||
| 3d9e52ac | 2012-05-01 19:52:55 | When retransmitting a timed-out DNS request, pick a fresh nameserver. Otherwise, requests initially sent to a failing nameserver would stay there indefinitely, even if other nameservers would work. Fix for sourceforge bug 3518439 | ||
| d873d678 | 2012-05-01 19:52:49 | Make some evdns.c debug logs more verbose | ||
| 6610fa5a | 2012-05-01 17:07:50 | dns-example.c can now take a resolv.conf file on the commandline | ||
| 9fbfe9b9 | 2012-05-01 13:03:33 | Correctly handle running on a system where accept4 doesn't work. Previously, we treated EINVAL as the only errno that indicated a broken accept4. But EINVAL only appears when one of the SOCK_* options isn't supported. If the accept4 syscall itself isn't there, we'll get an ENOSYS. Reported by Azat Khuzhin. | ||
| a1630260 | 2012-05-01 13:22:56 | Merge branch '21_robust_monotonic' | ||
| 2e882a07 | 2012-04-30 22:00:05 | Merge remote-tracking branch 'origin/patches-2.0' Conflicts: event.c | ||
| 30f06715 | 2012-04-30 21:45:43 | Merge remote-tracking branch 'github/20_active_prio_inv' into patches-2.0 | ||
| b98624ef | 2012-04-30 21:33:56 | Merge remote-tracking branch 'origin/patches-2.0' Conflicts: bufferevent_openssl.c | ||
| b3887cdf | 2012-04-11 21:33:27 | Work-around a stupid gcov-breaking bug in OSX 10.6 This only affects the unit tests. Fix found at http://rachelbythebay.com/w/2011/07/12/forkcrash/ (Backport from 2.1) | ||
| 4e62cd16 | 2012-03-30 15:08:40 | Fixed potential double-readcb execution with openssl bufferevents. the function do_read() will call SSL_read(), and if successful, will call _bufferevent_run_readcb() before returning to consider_reading(). consider_reading() will then check SSL_pending() to make sure all pending data has also been read. If it does not, do_read() is called again. The issue with this is the possibility that the function that is executed by _bufferevent_run_readcb() called bufferevent_disable(ssl_bev, EV_READ) before the second do_read(); In this case, the users read callback is executed a second time. This is potentially bad for applications that expect the bufferevent to stay disabled until further notice. (this is why running openssl bufferevents without DEFER_CALLBACKS has always been troublesome). | ||
| 2bfda401 | 2012-04-30 17:30:48 | If a higher-priority event becomes active, don't continue running events of the current priority. Bug found by Ralph Castain. | ||
| 5859c235 | 2012-04-27 09:32:51 | Generate event-config.h with a single sed script This approach should make the creation of the file more atomic, to fix a bug reported by Dinh. This patch has one change from Zack's original version: it avoids $<, since Dave Hart tells me he thinks that's not so portable. (commit message by nickm) | ||
| e0222274 | 2012-04-27 09:36:13 | Merge remote-tracking branch 'origin/patches-2.0' | ||
| 30b6f889 | 2012-04-27 09:32:51 | Generate event-config.h with a single sed script This approach should make the creation of the file more atomic, to fix a bug reported by Dinh. This patch has one change from Zack's original version: it avoids $<, since Dave Hart tells me he thinks that's not so portable. (commit message by nickm) | ||
| 26c75828 | 2012-04-26 16:22:03 | When PRECISE_TIMERS is set with epoll, use timerfd for microsecond precision The epoll interface ordinarily gives us one-millisecond precision, so on Linux it makes perfect sense to use the CLOCK_MONOTONIC_COARSE timer. But when the user has set the new PRECISE_TIMER flag for an event_base (either by the EVENT_BASE_FLAG_PRECISE_TIMER flag, or by the EVENT_PRECISE_TIMER environment variable), they presumably want finer granularity. On not-too-old Linuxes, we can achieve this using the Timerfd mechanism, which accepts nanosecond granularity and understands posix clocks. It's a little more expensive than just calling epoll_wait(), so we won't do it by default. | ||
| 7428c78a | 2012-04-26 14:35:18 | Improve the monotonic-time unit test: make it check the step size | ||
| 630f077c | 2012-04-26 11:56:59 | Simple unit tests for monotonic timers | ||
| 2c470452 | 2012-04-23 13:33:25 | Implement fast/precise monotonic clocks on Windows This uses code from libutp, which was released under the MIT license; see evutil_time.c and LICENSE changes. | ||
| a2598ec6 | 2012-04-23 13:56:00 | Add EVENT_PRECISE_TIMER environment var for selecting precise-but-slow timer | ||
| f5e4eb05 | 2012-04-20 13:14:10 | Refactor monotonic timer handling into a new type and set of functions; add a gettimeofday-based ratcheting implementation Now, event.c can always assume that we have a monotonic timer; this makes event.c easier to write. |