Log

Author Commit Date CI Message
Nick Mathewson 197abd8b 2013-08-06T17:51:21 Fix compilation
Nick Mathewson f391b003 2013-08-06T17:29:34 Merge remote-tracking branch 'origin/patches-2.0' Conflicts: arc4random.c
Nick Mathewson 2bbb5d76 2013-08-06T17:06:23 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 e639a9e1 2013-08-01T10:40:08 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 d4095146 2013-07-31T22:23:16 Avoid leaking segment mappings when offset is not a page multiple Found by Bob / Black Hole on the mailing list.
Maxime Henrion fbc323b7 2013-07-31T15:02:07 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 a7f82a31 2013-07-24T20:50:05 Add evhttp_connection_get_server().
Nick Mathewson 600c5865 2013-07-30T10:44:42 Merge remote-tracking branch 'ellzey/bev_ratelimit_get_token_cfg'
Nick Mathewson 25c350b2 2013-07-29T09:10:24 Add Maxime Henrion to README
Nick Mathewson 01a6ef78 2013-07-21T13:27:49 Merge remote-tracking branch 'origin/patches-2.0'
Frank Denis b8f59807 2013-07-20T14:02:49 libevent/win32_dealloc() : fix sizeof(pointer) vs sizeof(*pointer)
Mark Ellzey 1c77fbb0 2013-07-11T16:26:43 Pass and return const for bufferevent_get_token_bucket_cfg
Mark Ellzey 4b3d5af8 2013-07-11T12:31:39 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 c3260cb9 2013-07-11T06:57:16 Merge pull request #69 from makotokato/clang Don't use return since return type is void and build error occurs using ...
Makoto Kato 1ea1f26b 2013-07-10T11:02:43 We should return after arc4random_buf()
Makoto Kato 838161dc 2013-07-09T11:50:33 Don't use return since return type is void and build error occurs using clang
Mobai Zhang 0fa107d8 2013-07-02T16:01:02 Added event_base_get_num_events()
Nick Mathewson 90a8c539 2013-06-10T15:17:34 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 387e6b90 2013-06-10T15:16:13 Merge remote-tracking branch 'public/pr/79' into patches-2.0
Nick Mathewson 36ab0721 2013-06-10T10:47:35 Merge branch '21_evdns_log_debug'
Nick Mathewson 0b05aa65 2013-06-10T10:47:28 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 6e496961 2013-06-10T10:38:12 Document that arc4random is not a great cryptographic PRNG.
Nick Mathewson e35b5408 2013-06-10T10:33:56 When we seed from /proc/sys/kernel/random/uuid, count it as success Found by Joseph Spadavecchia
Greg Hazel 363388a0 2013-05-29T14:19:14 restore the comment
Azat Khuzhin f8d7df85 2013-05-11T03:53:11 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 e1766a1b 2013-05-29T16:26:50 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 c307a250 2013-05-29T13:32:47 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson e826f19e 2013-05-29T13:30:56 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 0ac2ed65 2013-05-28T11:30:14 Merge remote-tracking branch 'origin/pr/62'
Nick Mathewson 3dc2d8ab 2013-05-28T10:14:51 Remove a debugging assert that should not have been left in
Maxime Henrion dbc9cd4d 2013-05-23T16:31:53 Fix locking in bufferevent_get_options_().
Maxime Henrion 31db8a02 2013-05-23T16:29:17 Fix a double close() bug in evhttp when the underlying bufferevent uses BEV_OPT_CLOSE_ON_FREE.
Nick Mathewson 1f29b18f 2013-05-20T12:30:40 Avoid redundant syscall if making a socket cloexec twice I got the idea from Maxime's last patch.
Maxime Henrion 42c03da9 2013-05-20T12:23:53 Avoid redundant syscall to make a nonblocking socket nonblocking
Maxime Henrion 9b5a527f 2013-05-16T16:38:39 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 7e876df7 2013-05-13T19:50:30 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 1cd9ff59 2013-05-13T19:20:42 Add tests for evdns_base_resume(). - leak_resume - leak_cancel_and_resume - leak_resume_send_err - leak_cancel_and_resume_send_err
Azat Khuzhin 14971a83 2013-05-11T03:53:11 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 8ab612e3 2013-05-11T22:21:30 Whoops. It is gdi.lib, not gdi32.lib. (github issue #61)
Azat Khuzhin d3d999a1 2013-05-10T20:22:56 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 5ba8ab76 2013-05-10T21:38:26 Fix test compilation with nmake: add the gdi.lib dependency ACK: efekty
Nick Mathewson ef820dbf 2013-05-07T10:03:28 Merge remote-tracking branch 'origin/patches-2.0'
Belobrov Andrey 5c710c03 2013-05-06T18:15:03 Checking request nameserver for NULL, before using it.
Nick Mathewson f8d80a28 2013-05-01T23:12:08 Bump version to 2.1.3-alpha-dev
Nick Mathewson 85a40040 2013-05-01T13:37:57 Add regress_finalize to makefile.nmake
Nick Mathewson 57cbfcd6 2013-05-01T10:28:42 Set a release date
Nick Mathewson 5bc290e2 2013-05-01T10:04:08 Make http/connection_retry off-by-default
Nick Mathewson f2925d78 2013-04-30T22:57:25 Fix a windows compilation regression This is github issue #57; reported by "efekty". I assume the compiler is MSVC.
Nick Mathewson 9e3a99ca 2013-04-30T20:09:52 Fix a bug in fixing a bug in out-of-tree test-dumpevents
Nick Mathewson b48c7bf8 2013-04-30T14:40:50 Make regress_finalize work with malloc replacement disabled
Nick Mathewson cbfc35f6 2013-04-30T14:26:47 Fix some out-of-tree build bugs
Nick Mathewson dd4be76f 2013-04-30T12:02:49 Incremement version to 2.1.3-alpha
Nick Mathewson c6561efb 2013-04-30T12:02:19 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson d9917c49 2013-04-30T11:52:55 Add acknowledgements to readme
Nick Mathewson e6cdd17b 2013-04-30T11:44:39 Start editing the changelog for 2.1.3-alpha
Nick Mathewson 8415b69d 2013-04-30T10:22:40 Mark the finalize stuff as experiemental in case it needs to change
Nick Mathewson 959c1428 2013-04-30T11:42:53 Start a changelog for Libevent 2.0.22-stable
Nick Mathewson 920a5e69 2013-04-26T19:15:50 Clarify an important point about event_base_foreach_event()
Nick Mathewson 702c9aa4 2013-04-26T19:14:05 Fix a bug in the new main/event_foreach test It wasn't making sure that the events weren't internal.
Nick Mathewson d5967397 2013-04-26T17:51:33 More unit tests for initializing common timeouts. Try with: misformed usecs in inputs, and with initializing common timeouts from other common timeouts.
Nick Mathewson f09629ea 2013-04-26T17:46:33 A test for event_get_assignment()
Nick Mathewson 30ea2910 2013-04-26T17:28:46 Unit tests for event_base_gettimeofday_cached() and event_base_update_cache_time()
Nick Mathewson 0b096efe 2013-04-26T13:50:22 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 a153874d 2013-04-26T13:49:45 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 3555befd 2013-04-26T12:27:05 Merge branch '21_deadlock_fix_v2'
Nick Mathewson 25aac697 2013-04-26T12:00:17 Remove a no-longer-true XXXX comment.
Nick Mathewson 5d11f4f3 2013-04-26T11:57:40 Make the event_finalize* functions return an error code
Nick Mathewson a800b913 2013-04-26T11:36:43 More documentation for finalization feature
Nick Mathewson 4ea4c6a9 2013-04-10T13:44:23 Remove bufferevent_del_generic_timeout_cbs as now unused
Nick Mathewson e9ebef83 2013-04-09T21:14:52 Always run pending finalizers when event_base_free() is called There was actually a bug in the original version of this: it tried to run the finalizers after (potentially) setting current_base to NULL; but those finalizers could themselves (potentially) be invoking stuff that needed to know about the current event_base. So the right time to do it is _before_ clearing current_base.
Nick Mathewson 02fbf687 2013-04-09T18:16:13 Use finalization feature so bufferevents can avoid deadlocks Since the bufferevents' events are now EV_FINALIZE (name pending), they won't deadlock. To clean up properly, though, we must use the finalization feature. This patch also split bufferevent deallocation into an "unlink" step that happens fast, and a "destruct" step that happens after finalization. More work is needed: there needs to be a way to specify a finalizer for the bufferevent's argument itself. Also, this finalizer business makes lots of the reference counting we were doing unnecessary. Also, more testing is needed.
Nick Mathewson 9d893c97 2013-04-09T18:15:08 Add some verbose notes to bufferevent unit tests
Nick Mathewson 8eedeabe 2013-03-28T14:13:19 Implement event_finalize() and related functions to avoid certain deadlocks
Nick Mathewson b1b054f0 2013-04-26T12:12:08 Make all tests pass under EVENT_DEBUG_MODE=1 The fix was easy: the tests that were failing were those tests that also enabled debug mode themselves. So, let them know when EVENT_DEBUG_MODE is on, so they won't do that.
Nick Mathewson b3aca5d9 2013-04-25T15:13:24 Merge branch '21_http_error_cb_squashed'
Azat Khuzhin 54cc8005 2013-03-21T17:01:31 Drop extra header http_struct.h from regress_http.c
Azat Khuzhin 862c217a 2013-03-22T14:35:47 Add test for EVREQ_HTTP_REQUEST_CANCEL into http_cancel_test()
Azat Khuzhin 7b077194 2013-03-21T13:55:40 Add new error_cb for actual reporting of HTTP request errors. It is useful to know why you callback called with NULL (i.e. it failed), for example if you set max_body with evhttp_connection_set_max_body_size() you must know that it failed because of body was longer than this size. (Commit message tweaked by Nick)
Nick Mathewson ed26561b 2013-04-25T14:48:56 Fix another warning introduced in 0c6ec5d8
Nick Mathewson eeb700ce 2013-04-25T14:46:46 Fix a warning introduced in 0c6ec5d8
Nick Mathewson 6b94ffce 2013-04-25T13:54:19 Merge remote-tracking branch 'origin/patches-2.0' Conflicts: configure.ac
Nick Mathewson 66dacfa2 2013-04-25T13:43:49 Merge remote-tracking branch 'origin/pr/36' into patches-2.0
Nick Mathewson eb6b0c1f 2013-04-25T10:47:16 Merge branch '21_evdns_disable_when_inactive'
Azat Khuzhin 6b7fa620 2013-03-27T20:15:46 evdns: New flag to make evdns not prevent the event loop from exiting Here is the brief description of problem: When you are use evdns to resolve domains to IP adresses (see ./sample/dns-example) you loop never returns from event_base_dispatch(), and because of this the program will never terminated. Because existing programs may be depending on the old behavior, we only apply the fix when evdns_base_new() is created with a new flag - EVDNS_BASE_DISABLE_WHEN_INACTIVE. (Commit message edited by Nick while squashing the branch.)
Nick Mathewson 5e6fa2a3 2013-04-24T13:23:15 event_base_update_cache_time should be a no-op if the loop isn't running
Nick Mathewson 1c3147f5 2013-04-10T18:03:16 Add a test with an active_later event at event_base_free time.
Nick Mathewson 95acdaa3 2013-04-10T17:56:54 Another tweak to https-client.c
Nick Mathewson 8a90a850 2013-04-10T13:53:44 Remove http_struct.h usage in sample/https-client.c
Nick Mathewson 2fad0f3d 2013-04-05T15:06:54 Add an environment variable (EVENT_DEBUG_MODE) to run unit tests in debug mode Not all tests currently pass with debug mode on.
Nick Mathewson 33398008 2013-04-01T11:59:26 Merge branch '21_empty_strlcpy'
Nick Mathewson 49146200 2013-03-31T14:05:26 Do not build strlcpy.c when it will have no code.
Nick Mathewson e834006b 2013-03-29T09:39:52 Merge pull request #75 from altf4/master Header update to specify evbuffer_pullup() behavior
Dan Petro cf8d1cdb 2013-03-29T09:28:35 Specify return behavior in header for evbuffer_pullup() in corner case Function returns NULL when told to pullup more data than exists
Nick Mathewson 81ea0c4c 2013-03-28T05:57:07 Merge pull request #47 from ppelleti/https HTTPS example adapted from Catalin
Nick Mathewson 1bc4a8f9 2013-03-25T21:14:10 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 773b0a5d 2013-03-25T21:12:49 Fix a typo in a comment in buffer.h. Spotted by Alt_F4
Nick Mathewson f935e215 2013-03-15T09:33:28 build test/test-script.sh on systems with a less-featureful $<
Nick Mathewson 787fd748 2013-03-15T09:33:13 Make --disable-libevent-regress work again
Nate Rosenblum 9443868d 2013-03-05T11:29:33 Double-check next timeout when adding events When resuming the system from a suspended state, the ev_timeout field of a scheduled timer event may be in the past. This leads to unexpected behavior when scheduling a short-duration timer event immediately after returning from suspension, because the new event does not land on top of the timeout minheap and so the event loop (blocked on a possibly long-duration timeout) is not notified. This patch checks for this condition and, if it obtains, notifies the event loop.
Azat Khuzhin 13676535 2013-03-01T12:01:42 Test: decoding just part of string with evhttp_decode_uri_internal()