]>
granicus.if.org Git - libevent/log
Nick Mathewson [Thu, 23 Aug 2012 15:42:04 +0000 (11:42 -0400)]
Add missing implementation for event_enable_debug_logging
Nick Mathewson [Thu, 23 Aug 2012 14:46:29 +0000 (10:46 -0400)]
Rename event_enable_lock_debuging() to ..._debugging()
Keep the misspelled version around for backward compatibility
Based on a patch by Diwaker Gupta.
Nick Mathewson [Thu, 23 Aug 2012 14:13:26 +0000 (10:13 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Wed, 22 Aug 2012 16:30:42 +0000 (12:30 -0400)]
Correctly invoke callbacks when a SSL bufferevent reads some and then blocks.
Based on a patch by Andrew Hochhaus, who correctly diagnosed this bug.
Nick Mathewson [Thu, 2 Aug 2012 19:02:27 +0000 (15:02 -0400)]
Avoid test -e; older shs don't have one.
Reported by Paul Croome.
Report forwarded by Dave Hart.
Nick Mathewson [Thu, 2 Aug 2012 16:36:05 +0000 (12:36 -0400)]
Add deferred_cb_skew to list of timing-dependent tests
Nick Mathewson [Thu, 2 Aug 2012 16:35:49 +0000 (12:35 -0400)]
Avoid unused-var warning on systems with clock_gettime but without CLOCK_MONOTONIC_COARSE
Nick Mathewson [Thu, 2 Aug 2012 16:09:08 +0000 (12:09 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
evutil_rand.c
Nick Mathewson [Thu, 2 Aug 2012 15:56:17 +0000 (11:56 -0400)]
Add explicit AC_PROG_SED to configure.in so all autoconfs will expose $(SED)
Nick Mathewson [Thu, 2 Aug 2012 15:38:32 +0000 (11:38 -0400)]
Fix an unused variable warning on *BSD.
Nick Mathewson [Tue, 31 Jul 2012 16:03:48 +0000 (12:03 -0400)]
Merge remote-tracking branch 'ppelleti/windows-ssl'
Nick Mathewson [Mon, 30 Jul 2012 21:08:44 +0000 (17:08 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Greg Hazel [Mon, 30 Jul 2012 20:52:55 +0000 (16:52 -0400)]
Avoid segfault on weird timeout during name lookup.
If an evdns_getaddrinfo timeout happens while pending_cb is set, and
a callback is about to run, but we get a call to
evdns_getaddrinfo_gotresolve before it finishes.
Github issue #60. Thanks to Greg Hazel for patch and patience.
Nick Mathewson [Thu, 26 Jul 2012 14:49:06 +0000 (10:49 -0400)]
Extract common error-handling code in evconnlistener_new_bind
Nick Mathewson [Thu, 26 Jul 2012 14:45:10 +0000 (10:45 -0400)]
Avoid double-free on error in evbuffer_add_file. Found by coverity.
Nick Mathewson [Thu, 26 Jul 2012 14:44:48 +0000 (10:44 -0400)]
Check return value when using LEV_OPT_DEFERRED_ACCEPT. Found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:43:13 +0000 (10:43 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
buffer.c
http.c
Nick Mathewson [Thu, 26 Jul 2012 14:39:05 +0000 (10:39 -0400)]
Check more setsockopt return values when binding sockets. Found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:38:29 +0000 (10:38 -0400)]
memset sockaddr_in before using it. Found by coverity.
Nick Mathewson [Thu, 26 Jul 2012 14:37:47 +0000 (10:37 -0400)]
Move assignment outside tt_assert in ssl unit tests. Appeases coverity.
Nick Mathewson [Thu, 26 Jul 2012 14:37:13 +0000 (10:37 -0400)]
Add checks to various return values in unit tests. Found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:34:06 +0000 (10:34 -0400)]
Avoid possible needless call to writev. Found by coverity.
Nick Mathewson [Thu, 26 Jul 2012 14:16:47 +0000 (10:16 -0400)]
Remove unused variable; spotted by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:11:17 +0000 (10:11 -0400)]
Fix a shadowed variable in addfile_test_readcb; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:11:00 +0000 (10:11 -0400)]
Avoid memory leak in test_event_calloc unit test; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:10:35 +0000 (10:10 -0400)]
Add checks for functions in test-ratelim.c; found by Coverity
Nick Mathewson [Thu, 26 Jul 2012 14:09:13 +0000 (10:09 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
configure.in
test/regress_buffer.c
test/regress_dns.c
Nick Mathewson [Thu, 26 Jul 2012 14:04:43 +0000 (10:04 -0400)]
Avoid more crashes/bad calls in unit tests; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 13:59:47 +0000 (09:59 -0400)]
Add some missing null checks to unit tests; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 13:53:20 +0000 (09:53 -0400)]
Fix resource leaks in the unit tests; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 13:35:43 +0000 (09:35 -0400)]
Fix various check-after-dereference issues in unit tests: found by coverity
Nick Mathewson [Wed, 25 Jul 2012 20:18:33 +0000 (16:18 -0400)]
Set umask before calling mkstemp in unit tests. Found by coverity
Nick Mathewson [Wed, 25 Jul 2012 20:07:22 +0000 (16:07 -0400)]
Fix another possible uninitialized read in dns regression tests. Found by coverity.
Nick Mathewson [Wed, 25 Jul 2012 20:06:51 +0000 (16:06 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Wed, 25 Jul 2012 20:05:36 +0000 (16:05 -0400)]
Fix possible uninitialized read in dns regression tests. Found by coverity.
Nick Mathewson [Wed, 25 Jul 2012 19:59:50 +0000 (15:59 -0400)]
Remove deadcode in http regression tests. Found by coverity.
Nick Mathewson [Mon, 23 Jul 2012 20:32:43 +0000 (16:32 -0400)]
Add process.h include to evutil.c for _getpid
Nick Mathewson [Fri, 20 Jul 2012 19:36:15 +0000 (15:36 -0400)]
Fix tinytset_skip to work with new tinytest_set_flag_ signature
Nick Mathewson [Fri, 20 Jul 2012 19:35:33 +0000 (15:35 -0400)]
Fix compile error in win32 listener.c
SF issue
3546388
Nick Mathewson [Tue, 17 Jul 2012 15:10:44 +0000 (11:10 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 17 Jul 2012 15:08:25 +0000 (11:08 -0400)]
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.
Nick Mathewson [Mon, 16 Jul 2012 19:44:07 +0000 (15:44 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
event.c
win32select.c
Nick Mathewson [Mon, 16 Jul 2012 19:34:18 +0000 (15:34 -0400)]
Win32: avoid crash when waiting forever on zero fds.
Patrick Pelletier [Wed, 11 Jul 2012 00:26:40 +0000 (17:26 -0700)]
Additional comments about OPENSSL_DIR variable, prompted by Dave Hart
Patrick Pelletier [Sat, 9 Jun 2012 02:47:23 +0000 (19:47 -0700)]
attempt to support OpenSSL in Makefile.nmake
Nick Mathewson [Fri, 29 Jun 2012 16:47:51 +0000 (12:47 -0400)]
Make load-dependent monotonic timer tests off-by-default
You can reenable them with @all, or say @fine_timing just to get
them.
Nick Mathewson [Fri, 29 Jun 2012 16:47:39 +0000 (12:47 -0400)]
Avoid (unlikely) overflow in bench_httpclient.c
Nick Mathewson [Fri, 29 Jun 2012 16:47:03 +0000 (12:47 -0400)]
Check return value of write() in regress.c
Nick Mathewson [Thu, 28 Jun 2012 20:52:21 +0000 (16:52 -0400)]
Merge branch '21_nonrecursive'
Nick Mathewson [Thu, 28 Jun 2012 17:18:28 +0000 (13:18 -0400)]
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.
Nick Mathewson [Thu, 28 Jun 2012 16:58:46 +0000 (12:58 -0400)]
Update to latest tinytest (
911b4f0349377 )
Nick Mathewson [Thu, 28 Jun 2012 16:57:58 +0000 (12:57 -0400)]
Make test_evutil_monotonic a little more tolerant
Nick Mathewson [Thu, 28 Jun 2012 16:00:57 +0000 (12:00 -0400)]
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.
Nick Mathewson [Thu, 28 Jun 2012 15:42:25 +0000 (11:42 -0400)]
Merge branch 'master' of ssh://github.com/libevent/libevent
Nick Mathewson [Thu, 28 Jun 2012 15:37:45 +0000 (11:37 -0400)]
remove a now-unused var in thread_deferred_cb_skew test
Nick Mathewson [Thu, 28 Jun 2012 15:36:52 +0000 (11:36 -0400)]
Merge branch '21_event_callback_v3'
Nick Mathewson [Mon, 25 Jun 2012 17:55:45 +0000 (13:55 -0400)]
Avoid a resource leak on error in http client benchmark
Nick Mathewson [Mon, 25 Jun 2012 16:19:26 +0000 (12:19 -0400)]
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.
Dave Hart [Mon, 18 Jun 2012 14:31:38 +0000 (10:31 -0400)]
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)
Simon Liu [Thu, 14 Jun 2012 17:01:05 +0000 (01:01 +0800)]
Make event_pending() threadsafe.
(Commit message by Nick)
Nick Mathewson [Thu, 14 Jun 2012 17:25:10 +0000 (13:25 -0400)]
Add GCC annotations so that the vsprintf functions get checked properly
Nick Mathewson [Fri, 8 Jun 2012 20:50:25 +0000 (16:50 -0400)]
Make the Makefile.nmake warning slightly less dire
Nick Mathewson [Fri, 8 Jun 2012 20:45:01 +0000 (16:45 -0400)]
Add evutil_time.obj to Makefile.nmake
Nick Mathewson [Wed, 6 Jun 2012 21:10:11 +0000 (14:10 -0700)]
Merge pull request #57 from rosslagerwall/memleak
Fix a couple of memory leaks (found with Valgrind).
Nick Mathewson [Wed, 6 Jun 2012 21:06:57 +0000 (17:06 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Ross Lagerwall [Wed, 6 Jun 2012 19:57:12 +0000 (21:57 +0200)]
Fix a couple of memory leaks (found with Valgrind).
Nick Mathewson [Mon, 4 Jun 2012 21:16:02 +0000 (14:16 -0700)]
Merge pull request #56 from rosslagerwall/fix-comment
Fix a comment in test-fdleak after
077c7e949 .
Ross Lagerwall [Sun, 3 Jun 2012 13:19:53 +0000 (15:19 +0200)]
Fix a comment in test-fdleak after
077c7e949 .
Nick Mathewson [Fri, 1 Jun 2012 13:50:07 +0000 (09:50 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Sebastian Hahn [Fri, 1 Jun 2012 03:23:29 +0000 (05:23 +0200)]
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
Nick Mathewson [Thu, 31 May 2012 06:52:37 +0000 (02:52 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
evutil_rand.c
Had conflicts with _EVENT_ -> EVENT__ change.
Greg Hazel [Tue, 29 May 2012 19:39:12 +0000 (12:39 -0700)]
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.)
Nick Mathewson [Mon, 21 May 2012 17:59:20 +0000 (10:59 -0700)]
Merge pull request #54 from rosslagerwall/configure-dup
Remove unnecessary code in configure.in.
Nick Mathewson [Mon, 14 May 2012 15:10:51 +0000 (11:10 -0400)]
Make it more clear that NOLOCK means "I promise, no multithreading"
Nick Mathewson [Mon, 14 May 2012 14:58:01 +0000 (10:58 -0400)]
Add caveat to docs about bufferevent_free() with data in outbuf
Based on libevent-users thread wtih Alexander Klauer
Nick Mathewson [Mon, 14 May 2012 14:55:27 +0000 (10:55 -0400)]
Be more clear that LEV_OPT_DEFERRED_ACCEPT has tricky prereqs
Ross Lagerwall [Sat, 12 May 2012 06:38:19 +0000 (08:38 +0200)]
Remove unnecessary code in configure.in.
Nick Mathewson [Wed, 9 May 2012 16:05:07 +0000 (12:05 -0400)]
Add an event_base_loopcontinue() to tell libevent to rescan right away
Nick Mathewson [Wed, 9 May 2012 15:06:06 +0000 (11:06 -0400)]
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.
Nick Mathewson [Wed, 9 May 2012 14:50:07 +0000 (10:50 -0400)]
Give event_base_process_active a single exit path
Nick Mathewson [Wed, 9 May 2012 14:49:28 +0000 (10:49 -0400)]
Make event_base_getnpriorities work with old "implicit base" code
Nick Mathewson [Tue, 8 May 2012 22:04:19 +0000 (18:04 -0400)]
Add a bufferevent_get_priority() function
Nick Mathewson [Tue, 8 May 2012 21:46:46 +0000 (17:46 -0400)]
New event_get_priority() function to return an event's priority
Nick Mathewson [Fri, 6 Apr 2012 15:05:35 +0000 (11:05 -0400)]
Replace more deferred_cb names with event_callback
Nick Mathewson [Fri, 6 Apr 2012 08:33:19 +0000 (04:33 -0400)]
Replace deferred_cbs with event_callback-based implementation.
Nick Mathewson [Fri, 6 Apr 2012 07:15:50 +0000 (03:15 -0400)]
event_base_assert_ok: check value of event_active_count for correctness
Nick Mathewson [Fri, 6 Apr 2012 07:00:40 +0000 (03:00 -0400)]
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.
Nick Mathewson [Thu, 5 Apr 2012 16:56:07 +0000 (12:56 -0400)]
Remove the unused bits from EVLIST_ALL
Nick Mathewson [Thu, 5 Apr 2012 16:38:18 +0000 (12:38 -0400)]
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.
Nick Mathewson [Thu, 3 May 2012 20:37:39 +0000 (16:37 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 3 May 2012 20:34:29 +0000 (16:34 -0400)]
Bump version to 2.0.19-stable-dev
Nick Mathewson [Thu, 3 May 2012 16:33:36 +0000 (12:33 -0400)]
Increment version to 2.0.19-stable
Nick Mathewson [Thu, 3 May 2012 16:21:57 +0000 (12:21 -0400)]
Merge remote-tracking branch 'github/patches-2.0'
Conflicts:
test/regress.c
Nick Mathewson [Thu, 3 May 2012 16:15:11 +0000 (12:15 -0400)]
Oops; fix the *right* windows compile issue
Nick Mathewson [Thu, 3 May 2012 16:05:52 +0000 (12:05 -0400)]
Fix win32 build issues: sleep, pid_t
Nick Mathewson [Wed, 2 May 2012 21:12:23 +0000 (17:12 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
ChangeLog
README
evdns.c
sample/dns-example.c
Nick Mathewson [Wed, 2 May 2012 21:09:11 +0000 (17:09 -0400)]
Start changelog for 2.0.19-stable
Nick Mathewson [Wed, 2 May 2012 20:52:27 +0000 (16:52 -0400)]
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.
Nick Mathewson [Tue, 1 May 2012 23:52:55 +0000 (19:52 -0400)]
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
Nick Mathewson [Tue, 1 May 2012 23:52:49 +0000 (19:52 -0400)]
Make some evdns.c debug logs more verbose