Log

Author Commit Date CI Message
Nick Mathewson a60632a1 2013-11-01T14:21:54 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 3b77d628 2013-11-01T14:20:25 Avoid redundant invocations of init_extension_functions for IOCP
Nick Mathewson 515ed879 2013-10-14T11:22:40 Merge branch 'pr_81'
Azat Khuzhin 4dd500cd 2013-10-01T19:54:09 regress_http: add tests for evhttp_connection_get_addr()
Azat Khuzhin 0c7f0405 2013-10-01T19:12:13 http: implement new evhttp_connection_get_addr() api. Basically tcp final handshake looks like this: (C - client, S - server) ACK[C] - FIN/ACK[S] - FIN/ACK[S] - ACK [C] However there are servers, that didn't close connection like this, while it is still _considered_ as valid, and using libevent http layer we can do requests to such servers. Modified handshake: (C - client, S - server) ACK[C] - RST/ACK[S] - RST/ACK[S] And in this case we can't extract IP address from socket, because it is already closed, and getpeername() will return: "transport endpoint is not connected". So we need to store address that we are connecting to, after we know it, and that is what this patch do. I have reproduced it, however it have some extra packages. (I will try to fix it) https://github.com/azat/nfq-examples/blob/master/nfqnl_rst_fin.c
Nick Mathewson 4464bd23 2013-10-10T16:10:50 Tweak indentation
Nick Mathewson 206124a2 2013-10-10T16:09:45 Merge remote-tracking branch 'origin/pr/79'
Nick Mathewson 97211377 2013-10-02T08:45:54 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 611e28b6 2013-10-01T19:54:57 regress_main: logging all if env EVENT_DEBUG_LOGGING_ALL isset
Nicolas Martyanoff 5a5acd9a 2013-09-28T20:03:28 add a http default content type option
Nick Mathewson a0931378 2013-09-19T10:48:27 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson e64a2b0b 2013-09-19T10:48:09 Fix another arc4random_buf-related warning
Nick Mathewson ee063766 2013-09-19T10:45:58 Merge remote-tracking branch 'origin/patches-2.0' Conflicts: evutil_rand.c
Nick Mathewson 5cb3865a 2013-09-19T10:43:54 Fix a compiler warning when checking for arc4random_buf linker breakage. Patch by Ralph Castain.
Nick Mathewson 0a051ef9 2013-09-16T12:29:48 Merge remote-tracking branch 'rosslagerwall/tree-build'
Ross Lagerwall 243386cc 2013-09-15T21:48:15 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 b04d13cd 2013-09-09T12:06:53 Merge remote-tracking branch 'origin/patches-2.0'
Nate Rosenblum 5eb17885 2013-09-03T14:46:47 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 ebfd8a89 2013-09-04T14:25:11 Fix reinit of fds with EV_WRITE but not EV_READ. Bugfix on 2.1.1-alpha.
Nick Mathewson 911abf3d 2013-08-19T10:11:21 Check CLOCK_MONOTONIC_* at runtime if needed. (We need this to avoid compile errors on cygwin. Fixes github issue 75.)
Nick Mathewson 3807a30b 2013-08-19T10:05:14 Merge remote-tracking branch 'origin/patches-2.0' Conflicts: util-internal.h
Nick Mathewson c83efb80 2013-08-19T10:02:55 Merge remote-tracking branch 'public/20_memclear' into patches-2.0
Nick Mathewson f5ced88c 2013-08-19T09:52:29 Really remove RNG seeds from the stack
Nick Mathewson c149a1a5 2013-08-13T11:14:11 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson bb524712 2013-08-13T11:12:25 Oops; revert testing code
Nick Mathewson 9695e9c1 2013-08-13T10:59:27 Avoid other RNG initialization FS reads when urandom file is specified
Nick Mathewson d44f91ad 2013-08-13T10:59:20 Finish a sentence
Azat Khuzhin 6171e1c2 2013-08-13T18:19:50 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 1c06985a 2013-08-06T20:00:53 Add an assertion for another of the complaints from coverity. See 1b065d07df196
Nick Mathewson e193c959 2013-08-06T19:42:20 test_evutil_rtrim: add another missing check.
Nick Mathewson 82b6956c 2013-08-06T19:39:35 Finalize tests: add a missing check
Nick Mathewson f314900d 2013-08-06T19:38:48 DNS tests: add a missing check
Nick Mathewson 87cd6f01 2013-08-06T19:35:56 Fix some crash-on-fail cases in DNS regression tests Found by coverity.
Nick Mathewson eba4506a 2013-08-06T19:33:45 Add missing check to test_evbuffer_file_segment_add_cleanup_cb
Nick Mathewson 77658846 2013-08-06T19:32:21 Fix a logic error in test_evbuffer_freeze
Nick Mathewson 1104d0be 2013-08-06T19:31:26 Fix a (failure-only) null dereference in the unit tests
Nick Mathewson 7080d55c 2013-08-06T19:28:53 Use void casts to suppress some "unchecked return value" warns
Nick Mathewson 44b2491b 2013-08-06T19:23:36 sample/le-proxy: Fail more gracefully if opening listener fails
Nick Mathewson f22049e3 2013-08-06T19:17:08 Fix an unlikely but possible error case for http connections Found by coverity
Nick Mathewson 69b5c647 2013-08-06T19:08:42 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 1b065d07 2013-08-06T19:06:58 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 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.