Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| 173d7823 | 2012-11-18 01:40:33 | Fix a gcc warning in rtrim test | ||
| f38e0788 | 2012-11-18 01:36:03 | Make ssl version check in unit tests work | ||
| e3b2e086 | 2012-11-16 16:15:03 | Add an event_remove_timer() to remove timer on an event without deleting it | ||
| 5a9a0141 | 2012-11-16 16:17:07 | Fix a couple of compile warnings in the unit tests | ||
| c6ff3812 | 2012-11-16 11:38:53 | Remove internal ws from multiline http headers correctly According to RFC2616: All linear white space, including folding, has the same semantics as SP. A recipient MAY replace any linear white space with a single SP before interpreting the field value or forwarding the message downstream. | ||
| ac425197 | 2012-11-16 11:29:34 | Remove trailing tabs in HTTP headers as well. | ||
| aa59d805 | 2012-11-16 11:13:29 | Clean up rtrim implementation If I understand the C standard correctly, you can't actually point at a position immediately _before_ the start of an object; only at the position immediately after. According to J.2 in the standard, in its big list of undefined behavior: "The behavior is undefined in the following circumstances: ... — Addition or subtraction of a pointer into, or just beyond, an array object and an integer type produces a result that does not point into, or just beyond, the same array object (6.5.6)." So we've got to fix rtrim to not do that. Also, make it unit tested, and give it an evutil_*_ name. | ||
| efb644ed | 2012-11-16 10:29:37 | Merge remote-tracking branch 'origin/patches-2.0' Conflicts: test/rpcgen_wrapper.sh | ||
| f3009e48 | 2012-11-16 10:28:19 | Make rpcgen_wrapper.sh work on systems without a "python2" binary | ||
| 4343edf3 | 2012-11-16 10:17:34 | Add a unit test in which an event is created with event_base_once() but never fires | ||
| 1f5a48d1 | 2012-11-15 11:45:12 | Merge remote-tracking branch 'origin/patches-2.0' | ||
| ac009f92 | 2012-11-15 11:43:20 | Warn when openssl version in unit test mismatches compiled version. | ||
| c2f30863 | 2012-11-15 11:42:14 | Fix renegotiation test to work around openssl 1.0.1 bug There's a bug in openssl 1.0.1 where TLS1.1 and TLS1.2 can't renegotiate with themselves. When testing renegotiation with OpenSSL >=1.0.1 and <1.0.1d, disable those protocols. | ||
| 1d9d5110 | 2012-11-15 11:40:33 | Use the same CFLAGS for openssl when building unit tests as with libevent | ||
| 64051b90 | 2012-11-06 17:42:46 | Clean up unit test for evbuffer_file_segment_add_cleanup_cb a little | ||
| e9f8feba | 2012-11-06 17:37:28 | Add a new callback to get called on evbuffer_file_segment free | ||
| 56e48c10 | 2012-11-02 10:58:02 | Fix a few mingw64 incompatibilities introduced since 2.0 | ||
| 2e6a9850 | 2012-11-01 18:12:07 | Merge remote-tracking branch 'github/20_win64_compilation' into 21_win64_compilation Conflicts: event.c http.c sample/event-read-fifo.c test/regress_bufferevent.c | ||
| 94866c27 | 2012-11-01 17:38:34 | Compile without warnings on mingw64 This is mostly a matter of catching cases where we were still assuming that evutil_socket_t could be used as an int. | ||
| 4b5f32a5 | 2012-10-23 13:26:44 | Use python2 rather than python python may refer to either python2 or python3 so rather by explicit by using python2. See PEP 394 - http://www.python.org/dev/peps/pep-0394/ for more details. | ||
| 1e3123da | 2012-08-28 16:15:14 | Fix handling of no-python case for nonrecursive make | ||
| 607a8ff9 | 2012-08-28 16:14:38 | Be quiet when making regress.gen.[ch] | ||
| 371a1237 | 2012-08-28 16:07:56 | Make quiet build even quieter | ||
| 6cdfeebe | 2012-08-28 16:01:14 | Rename subordinate Makefile.ams to include.am | ||
| 7092f3b6 | 2012-08-28 15:58:18 | Switch to non-recursive makefiles This approach should let Make work better, let libevent build faster (especially when using a parallelized build), and basically make the Makefiles easier to maintain. See http://miller.emu.id.au/pmiller/books/rmch/ for more info on why you'd want to do this. This is due to an idea from Zack Weinberg; the patch is my own. | ||
| 07e132e3 | 2012-08-23 10:46:29 | Rename event_enable_lock_debuging() to ..._debugging() Keep the misspelled version around for backward compatibility Based on a patch by Diwaker Gupta. | ||
| f1bd9388 | 2012-08-02 15:02:27 | Avoid test -e; older shs don't have one. Reported by Paul Croome. Report forwarded by Dave Hart. | ||
| 34c8f316 | 2012-08-02 12:36:05 | Add deferred_cb_skew to list of timing-dependent tests | ||
| 403b0d6e | 2012-07-31 12:03:48 | Merge remote-tracking branch 'ppelleti/windows-ssl' | ||
| 9852107f | 2012-07-26 10:43:13 | Merge remote-tracking branch 'origin/patches-2.0' Conflicts: buffer.c http.c | ||
| 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 | ||
| 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. | ||
| 52a0039b | 2012-07-20 15:36:15 | Fix tinytset_skip to work with new tinytest_set_flag_ signature | ||
| eba0eb2e | 2012-06-08 19:47:23 | attempt to support OpenSSL in Makefile.nmake | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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). | ||
| 3881d8fd | 2012-06-03 15:19:53 | Fix a comment in test-fdleak after 077c7e949. | ||
| 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. | ||
| 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. | ||
| 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. | ||
| 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 | ||
| 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 | ||
| 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) | ||
| 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. | ||
| 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 | ||
| 71bca50f | 2012-04-20 12:27:12 | Split out time-related prototypes into time-internal.h | ||
| 2711cda3 | 2012-04-20 12:14:20 | Split long lists in Makefile.am into one-item-per-line | ||
| 21205b83 | 2012-04-20 11:53:32 | Shave 700 msec off the persistent_timeout_jump test | ||
| d992d911 | 2012-04-20 11:51:33 | Merge remote-tracking branch 'origin/patches-2.0' | ||
| dfd808cb | 2012-04-19 00:25:12 | If time has jumped so we'd reschedule a periodic event in the past, schedule it for the future instead Fixes an issue reported on libevent-users in the thread "a dead looping bug when changing system time backward". Previously, if time jumped forward 1 hour[*] and we had a one-second periodic timer event, that event would get invoked 3600 times. That's almost certainly not what anybody wants. In a future version of Libevent, we should expose the amount of time that the callbac kwould have been invoked somehow. [*] Forward time jumps can happen with nonmonotonic clocks, or with clocks that jump on suspend/resume. It can also happen from Libevent's point of view if the user exits from event_base_loop() and doesn't call it again for a while. | ||
| b62b31f1 | 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/ | ||
| a969f7e7 | 2012-04-09 08:40:45 | Merge pull request #50 from rosslagerwall/simplify-test Simplify test.sh code significantly. | ||
| 3aa44159 | 2012-04-09 11:30:46 | Tweak the new evutil_weakrand_() code Make its state actually get seeded. Document it more thoroughly. Turn its state into a structure. Fix a bug in evutil_weakrand_range_() where it could return the top of the range. Change its return type to ev_int32_t. Add a quick unit test to make sure that the value of evutil_weakrand_range_() is in range. | ||
| e86af4b7 | 2012-04-09 10:46:32 | Change evutil_weakrand_() to avoid platform random() This change allows us to avoid perturbing the platform's random(), and to avoid hitting locks on random() in the platform's libc. evutil_weakrand_() is, well, weak, so we choose here an algorithm that favors speed over a number of other possibly desirable properties. We're using a linear congruential generator, and taking our parameters from those shared by the OpenBSD random() implementation, and Glibc's fastest random() implementation. The low bits of a LCG of modulus 2^32 are (notoriously) less random than the higher bits. So to generate a random value in a range, using the % operator is no good; we ought to divide. We add an evutil_weakrand_range_() function to do that. This code also changes the interface of evutil_weakrand_() so that it now manipulates an explicit seed, rather than having the seed in a static variable. This change enables us to use existing locks to achieve thread-safety, rather than having to rely on an additional lock. (Patch by Nicholas Marriott; commit message by Nick Mathewson.) | ||
| 9b856fd5 | 2012-04-07 17:32:00 | Simplify test.sh code significantly. Also make it easier to add new tests/backends. | ||
| 2449e0c5 | 2012-04-03 16:15:49 | Fix some compilation warnings with msvc | ||
| 6c95c6c8 | 2012-04-03 15:43:40 | Decrease MAX_REQUESTS in test-fdleak We've got to do this because doing otherwise seems to freak out windows XP. | ||
| 14eb28a3 | 2012-04-03 15:41:12 | Include util-internal.h earlier in test-dumpevents to fix solaris build See 95e2455cdbf840b for rationale. | ||
| e78baf4a | 2012-04-03 14:54:39 | Fix compilation with mm-replacement disabled. | ||
| 55e8dc1b | 2012-04-03 14:51:51 | Make check-dumpevents work with out-of-tree builds | ||
| f7b8200c | 2012-04-03 12:36:51 | Make check-dumpevents.py actually get included in the tarballs | ||
| fc23af45 | 2012-04-01 00:21:55 | Increase duration and tolerance on http/connection_retry test This takes its runtime back up a little again, but not so high as it was before. It appears to address the heisenbug issues of github nmathewson/libevent issue #49. So far. | ||
| 029a3db3 | 2012-03-26 20:12:45 | Require at least Python 2.4 for check-dumpevents.py. | ||
| c24f91ad | 2012-03-25 18:55:31 | Test more bufferevent_ratelim features | ||
| c5732fdd | 2012-03-25 18:54:40 | Add event_base_get_running_event() to get the event* whose cb we are in | ||
| 5626092c | 2012-03-23 19:30:02 | More coverage on reinsert_timeout tests | ||
| 8d08ccee | 2012-03-23 19:29:45 | Make test-dumpevents build on Linux | ||
| 8c36acd0 | 2012-03-23 18:42:56 | Fix a nasty bug in event_queue_reinsert_timeout() What was I thinking? The old function could handle heap-to-heap transitions, and transitions within the same common timeout queue, but it completely failed to handle heap/queue transitions, or transitions between timeout queues. Now, alas, it's complicated. I should look hard at the assembly here to see if it's actually better than the alternatives. | ||
| 7afe48aa | 2012-03-23 17:56:23 | Add a unit test for event_base_dump_events() This function uses a C program to generate its output, and then uses a Python program to check it for correctness. On systems without Python, we just make sure that the C program doesn't crash. It's likely that we should be requiring some particular python version. This is an alpha, though: I'm sure somebody will tell us which. |