]>
granicus.if.org Git - libevent/log
Nick Mathewson [Wed, 2 Oct 2013 15:45:54 +0000 (08:45 -0700)]
Merge pull request #80 from azat/tests-add-event-debug-logging-all
regress_main: logging all if env EVENT_DEBUG_LOGGING_ALL isset
Azat Khuzhin [Tue, 1 Oct 2013 15:54:57 +0000 (19:54 +0400)]
regress_main: logging all if env EVENT_DEBUG_LOGGING_ALL isset
Nick Mathewson [Thu, 19 Sep 2013 14:48:27 +0000 (10:48 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 19 Sep 2013 14:48:09 +0000 (10:48 -0400)]
Fix another arc4random_buf-related warning
Nick Mathewson [Thu, 19 Sep 2013 14:45:58 +0000 (10:45 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
evutil_rand.c
Nick Mathewson [Thu, 19 Sep 2013 14:43:54 +0000 (10:43 -0400)]
Fix a compiler warning when checking for arc4random_buf linker breakage.
Patch by Ralph Castain.
Nick Mathewson [Mon, 16 Sep 2013 16:29:48 +0000 (12:29 -0400)]
Merge remote-tracking branch 'rosslagerwall/tree-build'
Ross Lagerwall [Sun, 15 Sep 2013 19:48:15 +0000 (21:48 +0200)]
rpcgen: Generate regress.gen.[c,h] in build rather than src dir
Currently an out-of-tree build will either write to the src dir or reuse
the existing regress.gen.[c,h]. But if building from a read-only git
tree (or if the git dir is cleaned), these files will not exist and the
build fails. So write the files to the build dir. If the system does
not have python, the regress.gen.[c,h] will be used from the src dir if
they exist.
Nick Mathewson [Mon, 9 Sep 2013 16:06:53 +0000 (12:06 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Nate Rosenblum [Tue, 3 Sep 2013 21:46:47 +0000 (14:46 -0700)]
Avoid racy bufferevent activation
The evhttp_send_reply method invokes evhttp_write_buffer with a
callback that may release the underlying request object and
bufferevent upon completion. This cleanup callback is invoked by the
underlying bufferevent's write callback. Improperly enabling write
events before referencing the bufferevent could lead to use after free
and memory corruption.
maksqwe [Wed, 4 Sep 2013 11:25:11 +0000 (14:25 +0300)]
Fix reinit of fds with EV_WRITE but not EV_READ.
Bugfix on 2.1.1-alpha.
Nick Mathewson [Mon, 19 Aug 2013 14:11:21 +0000 (10:11 -0400)]
Check CLOCK_MONOTONIC_* at runtime if needed.
(We need this to avoid compile errors on cygwin. Fixes github issue
75.)
Nick Mathewson [Mon, 19 Aug 2013 14:05:14 +0000 (10:05 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
util-internal.h
Nick Mathewson [Mon, 19 Aug 2013 14:02:55 +0000 (10:02 -0400)]
Merge remote-tracking branch 'public/20_memclear' into patches-2.0
Nick Mathewson [Mon, 19 Aug 2013 13:52:29 +0000 (09:52 -0400)]
Really remove RNG seeds from the stack
Nick Mathewson [Tue, 13 Aug 2013 15:14:11 +0000 (11:14 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 13 Aug 2013 15:12:25 +0000 (11:12 -0400)]
Oops; revert testing code
Nick Mathewson [Tue, 13 Aug 2013 14:59:27 +0000 (10:59 -0400)]
Avoid other RNG initialization FS reads when urandom file is specified
Nick Mathewson [Tue, 13 Aug 2013 14:59:20 +0000 (10:59 -0400)]
Finish a sentence
Azat Khuzhin [Tue, 13 Aug 2013 14:19:50 +0000 (18:19 +0400)]
sample: drop uri_root from base_url in http-server.
By default there is "0.0.0.0", and this address will work only from
the same machine, and besides there is no need in uri_root in base_url,
because it will be added automatically by browser.
Nick Mathewson [Wed, 7 Aug 2013 00:00:53 +0000 (20:00 -0400)]
Add an assertion for another of the complaints from coverity. See
1b065d07df196
Nick Mathewson [Tue, 6 Aug 2013 23:42:20 +0000 (19:42 -0400)]
test_evutil_rtrim: add another missing check.
Nick Mathewson [Tue, 6 Aug 2013 23:39:35 +0000 (19:39 -0400)]
Finalize tests: add a missing check
Nick Mathewson [Tue, 6 Aug 2013 23:38:48 +0000 (19:38 -0400)]
DNS tests: add a missing check
Nick Mathewson [Tue, 6 Aug 2013 23:35:56 +0000 (19:35 -0400)]
Fix some crash-on-fail cases in DNS regression tests
Found by coverity.
Nick Mathewson [Tue, 6 Aug 2013 23:33:45 +0000 (19:33 -0400)]
Add missing check to test_evbuffer_file_segment_add_cleanup_cb
Nick Mathewson [Tue, 6 Aug 2013 23:32:21 +0000 (19:32 -0400)]
Fix a logic error in test_evbuffer_freeze
Nick Mathewson [Tue, 6 Aug 2013 23:31:26 +0000 (19:31 -0400)]
Fix a (failure-only) null dereference in the unit tests
Nick Mathewson [Tue, 6 Aug 2013 23:28:53 +0000 (19:28 -0400)]
Use void casts to suppress some "unchecked return value" warns
Nick Mathewson [Tue, 6 Aug 2013 23:23:36 +0000 (19:23 -0400)]
sample/le-proxy: Fail more gracefully if opening listener fails
Nick Mathewson [Tue, 6 Aug 2013 23:17:08 +0000 (19:17 -0400)]
Fix an unlikely but possible error case for http connections
Found by coverity
Nick Mathewson [Tue, 6 Aug 2013 23:08:42 +0000 (19:08 -0400)]
Move event_debug_note_teardown_ before mm_free.
This isn't a bug, since only the pointer value of ev was used, but
it's probably best not to tempt fate. Found by coverity.
Nick Mathewson [Tue, 6 Aug 2013 23:06:58 +0000 (19:06 -0400)]
Add some assertions to please coverity.
In event_process_active_single_queue, EVLIST_INIT must be set on any
event that uses one of the event-only closures, and so "ev" will be
set in those cases. But coverity's worried here (CIDs numerous). So
instead, just add the assertions that should make it happy.
Nick Mathewson [Tue, 6 Aug 2013 21:51:21 +0000 (17:51 -0400)]
Fix compilation
Nick Mathewson [Tue, 6 Aug 2013 21:29:34 +0000 (17:29 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
arc4random.c
Nick Mathewson [Tue, 6 Aug 2013 21:06:23 +0000 (17:06 -0400)]
Add evutil_secure_rng_set_urandom_device_file
This experimental function is needed for some seccomp2 hackery to
work, and should have no effect for systems that don't use it.
Nick Mathewson [Thu, 1 Aug 2013 14:40:08 +0000 (10:40 -0400)]
Remove an unreachable return statement in minheap-internal.h
Found by Brian Utterback; see http://bugs.ntp.org/show_bug.cgi?id=2446
Nick Mathewson [Thu, 1 Aug 2013 02:23:16 +0000 (22:23 -0400)]
Avoid leaking segment mappings when offset is not a page multiple
Found by Bob / Black Hole on the mailing list.
Maxime Henrion [Wed, 31 Jul 2013 15:02:07 +0000 (15:02 +0000)]
Add checks for evhttp_connection_get_server() in unit tests.
They validate that this function behave as expected; that is, it returns
NULL for outgoing connections, and returns the HTTP server object that
received the connection for incoming ones.
Maxime Henrion [Wed, 24 Jul 2013 20:50:05 +0000 (20:50 +0000)]
Add evhttp_connection_get_server().
Nick Mathewson [Tue, 30 Jul 2013 14:44:42 +0000 (10:44 -0400)]
Merge remote-tracking branch 'ellzey/bev_ratelimit_get_token_cfg'
Nick Mathewson [Mon, 29 Jul 2013 13:10:24 +0000 (09:10 -0400)]
Add Maxime Henrion to README
Nick Mathewson [Sun, 21 Jul 2013 11:27:49 +0000 (13:27 +0200)]
Merge remote-tracking branch 'origin/patches-2.0'
Frank Denis [Sat, 20 Jul 2013 21:02:49 +0000 (14:02 -0700)]
libevent/win32_dealloc() : fix sizeof(pointer) vs sizeof(*pointer)
Mark Ellzey [Thu, 11 Jul 2013 20:26:43 +0000 (16:26 -0400)]
Pass and return const for bufferevent_get_token_bucket_cfg
Mark Ellzey [Thu, 11 Jul 2013 16:31:39 +0000 (12:31 -0400)]
Add function to fetch underlying ratelimit cfg
bufferevent_get_token_bucket_cfg() will return the struct ev_token_bucket_cfg
for a bufferevent if available.
Nick Mathewson [Thu, 11 Jul 2013 13:57:16 +0000 (06:57 -0700)]
Merge pull request #69 from makotokato/clang
Don't use return since return type is void and build error occurs using ...
Makoto Kato [Wed, 10 Jul 2013 02:02:43 +0000 (11:02 +0900)]
We should return after arc4random_buf()
Makoto Kato [Tue, 9 Jul 2013 02:50:33 +0000 (11:50 +0900)]
Don't use return since return type is void and build error occurs using clang
Mobai Zhang [Tue, 2 Jul 2013 20:01:02 +0000 (16:01 -0400)]
Added event_base_get_num_events()
Nick Mathewson [Mon, 10 Jun 2013 19:17:34 +0000 (15:17 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Mon, 10 Jun 2013 19:16:13 +0000 (15:16 -0400)]
Merge remote-tracking branch 'public/pr/79' into patches-2.0
Nick Mathewson [Mon, 10 Jun 2013 14:47:35 +0000 (10:47 -0400)]
Merge branch '21_evdns_log_debug'
Nick Mathewson [Mon, 10 Jun 2013 14:47:28 +0000 (10:47 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Mon, 10 Jun 2013 14:38:12 +0000 (10:38 -0400)]
Document that arc4random is not a great cryptographic PRNG.
Nick Mathewson [Mon, 10 Jun 2013 14:33:56 +0000 (10:33 -0400)]
When we seed from /proc/sys/kernel/random/uuid, count it as success
Found by Joseph Spadavecchia
Greg Hazel [Wed, 29 May 2013 21:19:14 +0000 (14:19 -0700)]
restore the comment
Azat Khuzhin [Fri, 10 May 2013 23:53:11 +0000 (03:53 +0400)]
Fix SEGFAULT after evdns_base_resume if no nameservers installed.
If there is no nameservers installed, using
evdns_base_nameserver_ip_add(), than evdns_base_resume() will SEGFAULT,
because of NULL dereference in evdns_requests_pump_waiting_queue()
Conflicts:
evdns.c
Nick Mathewson [Wed, 29 May 2013 20:26:50 +0000 (16:26 -0400)]
Actually use the log facility for reporting evdns problems.
Fixes issue #63. Also refactors the evdns logging and log backend a
bit, so that it wastes a little less code.
Nick Mathewson [Wed, 29 May 2013 17:32:47 +0000 (13:32 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Wed, 29 May 2013 17:30:56 +0000 (13:30 -0400)]
Use windows vsnprintf fixup logic on all windows environments
Previously I'd relied on mingw to provide a vsnprintf with a
conformant return value. But it appears that some mingw
environments don't do that.
Nick Mathewson [Tue, 28 May 2013 15:30:14 +0000 (11:30 -0400)]
Merge remote-tracking branch 'origin/pr/62'
Nick Mathewson [Tue, 28 May 2013 14:14:51 +0000 (10:14 -0400)]
Remove a debugging assert that should not have been left in
Maxime Henrion [Thu, 23 May 2013 16:31:53 +0000 (16:31 +0000)]
Fix locking in bufferevent_get_options_().
Maxime Henrion [Thu, 23 May 2013 16:29:17 +0000 (16:29 +0000)]
Fix a double close() bug in evhttp when the underlying bufferevent uses BEV_OPT_CLOSE_ON_FREE.
Nick Mathewson [Mon, 20 May 2013 16:30:40 +0000 (12:30 -0400)]
Avoid redundant syscall if making a socket cloexec twice
I got the idea from Maxime's last patch.
Maxime Henrion [Mon, 20 May 2013 16:23:53 +0000 (12:23 -0400)]
Avoid redundant syscall to make a nonblocking socket nonblocking
Maxime Henrion [Thu, 16 May 2013 16:38:39 +0000 (16:38 +0000)]
If evsel->del() fails, don't leave the evmap in an inconsistent state.
This fixes assertion failures in cases where epoll() fails with EBADF
-- the root cause for which is as of yet unknown. It seems something
(OpenSSL?) is closing the file descriptor under our feet.
Azat Khuzhin [Mon, 13 May 2013 19:50:30 +0000 (19:50 +0000)]
Fix dns/leak_resume_send_err test.
Because we don't cancel request,
and want our callback to recieve DNS_ERR_SHUTDOWN,
we use deferred callback, and there was
- one extra malloc(),
@see reply_schedule_callback()
- and one missing free
@see request_finished() (req->handle->pending_cb = 1)
than we don't need to count in testleak_cleanup()
So just decrement allocated_chunks to 2,
like we already take care about it.
Azat Khuzhin [Mon, 13 May 2013 19:20:42 +0000 (19:20 +0000)]
Add tests for evdns_base_resume().
- leak_resume
- leak_cancel_and_resume
- leak_resume_send_err
- leak_cancel_and_resume_send_err
Azat Khuzhin [Fri, 10 May 2013 23:53:11 +0000 (03:53 +0400)]
Fix SEGFAULT after evdns_base_resume if no nameservers installed.
If there is no nameservers installed, using
evdns_base_nameserver_ip_add(), than evdns_base_resume() will SEGFAULT,
because of NULL dereference in evdns_requests_pump_waiting_queue()
Nick Mathewson [Sun, 12 May 2013 02:21:30 +0000 (22:21 -0400)]
Whoops. It is gdi.lib, not gdi32.lib. (github issue #61)
Azat Khuzhin [Fri, 10 May 2013 16:22:56 +0000 (20:22 +0400)]
Missed lock acquire/release in event_base_cancel_single_callback_()
Call backtrace:
...
event_queue_remove_active()
event_callback_cancel_nolock_()
event_base_cancel_single_callback_()
event_base_free_()
event_base_free()
...
Fix for
e9ebef83
Nick Mathewson [Sat, 11 May 2013 01:38:26 +0000 (21:38 -0400)]
Fix test compilation with nmake: add the gdi.lib dependency
ACK: efekty
Nick Mathewson [Tue, 7 May 2013 14:03:28 +0000 (10:03 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Belobrov Andrey [Mon, 6 May 2013 14:15:03 +0000 (18:15 +0400)]
Checking request nameserver for NULL, before using it.
Nick Mathewson [Thu, 2 May 2013 03:12:08 +0000 (23:12 -0400)]
Bump version to 2.1.3-alpha-dev
Nick Mathewson [Wed, 1 May 2013 17:37:57 +0000 (13:37 -0400)]
Add regress_finalize to makefile.nmake
Nick Mathewson [Wed, 1 May 2013 14:28:42 +0000 (10:28 -0400)]
Set a release date
Nick Mathewson [Wed, 1 May 2013 14:04:08 +0000 (10:04 -0400)]
Make http/connection_retry off-by-default
Nick Mathewson [Wed, 1 May 2013 02:57:25 +0000 (22:57 -0400)]
Fix a windows compilation regression
This is github issue #57; reported by "efekty". I assume the compiler
is MSVC.
Nick Mathewson [Wed, 1 May 2013 00:09:52 +0000 (20:09 -0400)]
Fix a bug in fixing a bug in out-of-tree test-dumpevents
Nick Mathewson [Tue, 30 Apr 2013 18:40:50 +0000 (14:40 -0400)]
Make regress_finalize work with malloc replacement disabled
Nick Mathewson [Tue, 30 Apr 2013 18:26:47 +0000 (14:26 -0400)]
Fix some out-of-tree build bugs
Nick Mathewson [Tue, 30 Apr 2013 16:02:49 +0000 (12:02 -0400)]
Incremement version to 2.1.3-alpha
Nick Mathewson [Tue, 30 Apr 2013 16:02:19 +0000 (12:02 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 30 Apr 2013 15:52:55 +0000 (11:52 -0400)]
Add acknowledgements to readme
Nick Mathewson [Tue, 30 Apr 2013 15:44:39 +0000 (11:44 -0400)]
Start editing the changelog for 2.1.3-alpha
Nick Mathewson [Tue, 30 Apr 2013 14:22:40 +0000 (10:22 -0400)]
Mark the finalize stuff as experiemental in case it needs to change
Nick Mathewson [Tue, 30 Apr 2013 15:42:53 +0000 (11:42 -0400)]
Start a changelog for Libevent 2.0.22-stable
Nick Mathewson [Fri, 26 Apr 2013 23:15:50 +0000 (19:15 -0400)]
Clarify an important point about event_base_foreach_event()
Nick Mathewson [Fri, 26 Apr 2013 23:14:05 +0000 (19:14 -0400)]
Fix a bug in the new main/event_foreach test
It wasn't making sure that the events weren't internal.
Nick Mathewson [Fri, 26 Apr 2013 21:51:33 +0000 (17:51 -0400)]
More unit tests for initializing common timeouts.
Try with: misformed usecs in inputs, and with initializing common timeouts
from other common timeouts.
Nick Mathewson [Fri, 26 Apr 2013 21:46:33 +0000 (17:46 -0400)]
A test for event_get_assignment()
Nick Mathewson [Fri, 26 Apr 2013 21:28:46 +0000 (17:28 -0400)]
Unit tests for event_base_gettimeofday_cached() and event_base_update_cache_time()
Nick Mathewson [Fri, 26 Apr 2013 17:50:22 +0000 (13:50 -0400)]
New tests for event_base_foreach_event()
Our dump-events code had exercised this a bit, but only via the
nonlocking backend. Also, nothing was checking the "Search for a
specific event" code.
Nick Mathewson [Fri, 26 Apr 2013 17:49:45 +0000 (13:49 -0400)]
New test for active_later->active transition on event_active
When event_active is called, an active_later event is supposed to become
active now. We had lacked a test for that.
Nick Mathewson [Fri, 26 Apr 2013 16:27:05 +0000 (12:27 -0400)]
Merge branch '21_deadlock_fix_v2'
Nick Mathewson [Fri, 26 Apr 2013 16:00:17 +0000 (12:00 -0400)]
Remove a no-longer-true XXXX comment.
Nick Mathewson [Fri, 26 Apr 2013 15:57:40 +0000 (11:57 -0400)]
Make the event_finalize* functions return an error code