Log

Author Commit Date CI Message
Nick Mathewson 27b5398f 2011-11-11T17:56:08 Tweaks, fixups, and comments on evbuffer_add_iovec
Mark Ellzey aaec5aca 2011-10-25T09:13:15 Added evbuffer_add_iovec and unit tests.
Nick Mathewson 95af0433 2011-11-03T11:45:43 Merge remote-tracking branch 'origin/patches-2.0'
Mansour Moufid 674bc6a2 2011-11-03T11:43:49 Fix typo in whatsnew-2.0.txt
Nick Mathewson dea055d0 2011-11-02T23:15:07 Merge remote-tracking branch 'github/20_evbuffer_remove_bug'
Nick Mathewson c882a959 2011-11-02T23:14:24 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson b18c04dd 2011-11-02T22:50:47 Use the free-trailing-chains function in evbuffer_insert_chain too
Nick Mathewson c37069cd 2011-11-02T16:09:15 Fix an evbuffer crash in evbuffer_remove_buffer() Found by Greg Hazel.
Greg Hazel 7eb52eb8 2011-11-02T15:19:05 improve test to remove at least one buffer from src
Greg Hazel 90bd620f 2011-11-01T13:44:40 unit test for remove_buffer bug
Nick Mathewson 00145918 2011-10-30T22:34:00 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 447b0bad 2011-10-30T22:32:18 Fix compile warning from saying event2/*.h inside a comment Based on a patch by Adrian Chadd
Nick Mathewson 0cb70e33 2011-10-26T10:17:21 Merge remote-tracking branch 'origin/patches-2.0'
Jamie Iles 1aee7183 2011-10-26T13:24:30 epoll: close fd on alloc fail at initialization If the memory allocations fail then we free any other allocated structures but don't close the file descriptor resulting in an leak of fd's.
Samy Al Bahra a2c48e3b 2011-10-24T01:31:55 evhttp: Add evhttp_foreach_bound_socket. Applies the function specified in the first argument to all evhttp_bound_sockets associated with a struct evhttp. The user must not attempt to free or remove any connections, sockets or listeners in the callback function.
Nick Mathewson 356554c8 2011-10-25T11:43:01 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 3c824bd3 2011-10-24T13:18:09 Update copyright dates to 2011.
Abel Mathew 212533e4 2011-10-21T19:53:32 New event_base_update_cache_time() to set cached_tv to current time This function is particularly useful for selectively increasing the accuracy of the cached time value in 'base' during callbacks that take a long time to execute. This function has no effect if the base is currently not in its event loop or if timeval caching is disabled via EVENT_BASE_FLAG_NO_CACHE_TIME.
Mansour Moufid c8953d1b 2011-10-14T17:16:03 Add argument checks to some memory functions in `event.c'. Add a zero check to the function `event_mm_malloc_', i.e. simply return NULL if the sz argument is zero. On failure, set errno to ENOMEM and return NULL. Add a zero check to the function `event_mm_calloc_', i.e. simply return NULL if either argument is zero. Also add an unsigned integer multiplication check, and if an integer overflow would occur, set errno to ENOMEM and return NULL. On failure, set errno to ENOMEM and return NULL. Add a NULL check to the function `event_mm_strdup_', i.e. set errno to EINVAL and return NULL. Also add an unsigned integer addition check, and if an integer overflow would occur, set errno to ENOMEM and return NULL. If a memory allocation error occurs, again set errno to ENOMEM and return NULL. Add unit tests to `test/regress_util.c'.
Nick Mathewson 724bfb56 2011-10-19T22:59:47 Add note about evhttp_send_reply_end to its doxygen
Nick Mathewson 128c8d6c 2011-10-19T22:44:33 Merge remote-tracking branch 'origin/patches-2.0'
Leonid Evdokimov 9e6a4efa 2011-10-19T17:44:17 More detailed message in case of libevent self-debugging failure.
Nick Mathewson 5e42202d 2011-10-19T22:41:11 Style and comment tweaks for dns/leak* tests
Leonid Evdokimov f7841bfc 2011-10-18T17:49:40 Test for commit aff6ba1
Nick Mathewson fc1a2514 2011-10-19T22:20:15 Merge remote-tracking branch 'origin/patches-2.0'
Leonid Evdokimov 21a08d68 2011-10-19T22:38:37 Empty DNS reply with OK status is another way to say NODATA. Sometimes DNS reply has nothing but query section. It does not look like error, so it should be treated as NODATA with TTL=0 as soon as there is no SOA record to deduce negative TTL from.
Leonid Evdokimov d58c15ee 2011-10-19T22:36:12 Tests for 94fba5b and f72e8f6
Nick Mathewson e0b81ba3 2011-10-12T01:02:13 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 8589f6c4 2011-10-12T01:00:23 Bump version to 2.0.15-stable-dev
Nick Mathewson ab0f5f18 2011-10-12T00:57:55 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson c54c2358 2011-10-12T00:39:22 Credit a patch from a one-named user
Nick Mathewson 78d80413 2011-10-12T00:22:54 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 4d9529fc 2011-10-12T00:22:17 Increment version to 2.0.15-stable
Nick Mathewson 177f2868 2011-10-12T00:21:29 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 7c3e0612 2011-10-12T00:16:12 Add changelog for 2.0.15-stable
Alexander Drozdov 998c8138 2011-10-11T09:26:57 bufferevent: Add functions to set/get max_single_read/write values.
Nick Mathewson 3c55b5ee 2011-10-11T09:50:57 Make evbase_priority_init() and evbase_get_npriorities() threadsafe
Alexander Drozdov ee3a4ee8 2011-10-11T11:12:34 Add event_base_get_npriorities() function.
Nick Mathewson fed8f6e4 2011-10-10T11:34:26 Merge remote-tracking branch 'origin/patches-2.0'
Greg Hazel ba5c27d4 2011-10-10T08:24:43 refer to non-deprecated evdns functions in comments
Nick Mathewson c6bbbf1b 2011-10-06T18:02:22 Make evbuffer_file_segment_types adaptable Instead of having a file segment born as one type and stay that way forever, let them start out unmapped, but map themselves as needed if they need to get written out on a non-drains_to_fd evbuffer.
Nick Mathewson 83588777 2011-10-06T15:21:55 Merge remote-tracking branch 'origin/patches-2.0' Conflicts: buffer.c test/regress_buffer.c
Nick Mathewson 706aa5f4 2011-10-06T15:11:50 Merge remote-tracking branch 'github/20_addfile_ssl' into patches-2.0
Nick Mathewson 5760efb1 2011-10-05T15:03:17 Merge branch '21_largefile_support'
Nick Mathewson e0cae789 2011-10-05T11:26:52 Merge branch '21_evloop_noexit'
Nick Mathewson 084e68f3 2010-12-01T21:53:08 New EVLOOP_NO_EXIT_ON_EMPTY option to keep looping even when no events are pending This can be useful if you want to start an event loop and then add or remove events to it from another thread.
Alexander Drozdov 9593a33f 2011-10-03T08:12:32 Allow evconnlistener to be created in disabled state.
Nick Mathewson b3bc77b6 2011-10-03T12:54:35 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 39c0cf7c 2011-10-03T12:49:02 Fix some "value never used" warnings with gcc 4.6.1
Nick Mathewson 2b768479 2011-10-03T12:45:36 Make write-checking fixes use tt_fail_perror
Mark Ellzey c3b62fd7 2011-07-12T13:05:36 Fixed compiler warnings for unchecked read/write calls.
Nick Mathewson 0ba0af9c 2011-09-29T09:30:04 Prefer mmap to sendfile unless a DRAINS_TO_FD flag is set. Allows add_file to work with SSL. The sendfile() implementation for evbuffer_add_file is potentially more efficient, but it has a problem: you can only use it to send bytes over a socket using sendfile(). If you are writing bytes via SSL_send() or via a filter, or if you need to be able to inspect your buffer, it doesn't work. As an easy fix, this patch disables the sendfile-based implementation of evbuffer_add_file on an evbuffer unless the user sets a new EVBUFFER_FLAG_DRAINS_TO_FD flag on that evbuffer, indicating that the evbuffer will not be inspected, but only written out via evbuffer_write(), evbuffer_write_atmost(), or drained with stuff like evbuffer_drain() or evbuffer_add_buffer(). This flag is off by default, except for evbuffers used for output on bufferevent_socket. In the future, it could be interesting to make a best-effort file segment implementation that tries to send via sendfile, but mmaps on demand. That's too much complexity for a stable release series, though.
Nick Mathewson 46974cd8 2011-09-28T09:23:41 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 1ef1f684 2011-09-28T09:22:17 Make evbuffer callbacks get the right n_added value after evbuffer_add Patch from Alex.
Nick Mathewson 1ebe7955 2011-09-26T11:11:30 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 296d29a1 2011-09-26T11:07:58 Merge branch '20_loopbreak_in_signal' into patches-2.0
Nick Mathewson 65c920c9 2011-09-25T07:41:29 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 7f82382a 2011-09-25T07:39:00 Use _SOURCES, not _sources, in sample/Makefile.am Found by Adrian Chadd
Nick Mathewson 2179d735 2011-09-16T09:47:14 Merge remote-tracking branch 'origin/patches-2.0'
Sergey Avseyev 9ae061ac 2011-09-15T13:06:38 le-proxy and regress depend on openssl directly
Nick Mathewson 38674d4a 2011-09-12T15:46:54 Merge remote-tracking branch 'origin/patches-2.0'
Leonid Evdokimov 94fba5b9 2011-08-10T15:58:47 Add DNS_ERR_NODATA error code to handle empty replies.
Leonid Evdokimov 2b6eae59 2011-08-10T15:58:19 Fix docstring in dns.h
Nick Mathewson 8a231040 2011-09-12T14:53:39 Build with large-file support on platforms where it matters Some hosts require you to define certain options to get a large off_t instead of a small one, to get useful ftell and fseek calls instead of ones that can only support 2GB files, and so on. This patch makes Libevent support those platforms by: * Defining the right options when we build, and * Changing our API so that it does not depend on the platform's definition of off_t. Based on discusion with Michael Herf
Nick Mathewson e20eabd6 2011-09-12T11:31:19 Merge branch '21_enable_debugging'
Nick Mathewson 6207826e 2011-09-12T11:31:02 Clarify event_enable_debug_logging a little
Nick Mathewson 4d637583 2011-09-12T10:57:37 Remove calls to deprecated bufferevent functions from evhttp.c
Nick Mathewson 8d3a8500 2011-09-12T10:46:17 Add evhttp callback for bufferevent creation; this lets evhttp support SSL. Based on a patch uploaded anonymously to sourceforge; cleaned up by Graham Leggett to work with current libevents.
Nick Mathewson caf133f9 2011-09-12T10:09:28 Merge branch 'new_configure_options'
Sebastian Hahn 75502677 2011-04-10T18:25:05 Implement --enable-gcc-hardening configure option Using --enable-gcc-hardening enables some additional safety features that gcc makes available such as stack smashing protection using canaries and ASLR. This commit is based on a patch for Tor: (git commit 04fa935e02270bc90aca0f1c652d31c7a872175b by Jacob Appelbaum) Copyright (c) 2007-2011, The Tor Project, Inc.
Sebastian Hahn d46517ee 2011-03-20T04:24:33 Make gcc warnings on by default, and --enable-gcc-warnings only add -Werror This commit is based on a patch for Tor (git commit ca60a6ce3f4786626ac455ec1b798b2e8304635c by Peter Palfrader), Copyright (c) 2007-2011, The Tor Project, Inc. (Originally, it added --enable-gcc-warnings-advisory as in Tor; Nick changed that.)
Nick Mathewson 4e8eb6a5 2011-09-09T20:53:30 When a signal callback is activated to run multiple times, allow event_base_loopbreak to work even before they all have run. Found by Abilio Marques.
Nick Mathewson 804f77fb 2011-09-01T17:39:37 Merge remote-tracking branch 'origin/patches-2.0'
Leonid Evdokimov f72e8f66 2011-08-31T00:56:45 DNS: add ttl for negative answers using RFC 2308 idea.
Nick Mathewson 10c3450f 2011-08-31T11:58:40 Make --enable-verbose-debug option match its help text
Nick Mathewson 4cbedae9 2011-08-31T11:28:37 Merge remote-tracking branch 'origin/patches-2.0' Conflicts: Makefile.am WIN32-Code/event2/event-config.h configure.in
Nick Mathewson a718b6c3 2011-08-31T11:25:11 Increment version to 2.0.14-stable-dev
Nick Mathewson ac9f2adb 2011-08-31T00:23:20 Credit new contributors for 2.0.14-stable
Nick Mathewson da90a9be 2011-08-30T22:35:51 Pick a release date for the changelog
Nick Mathewson 85976ddf 2011-08-30T22:28:02 Bump version to 2.0.14-stable
Zack Weinberg 148458e0 2011-08-11T09:34:51 Use SIG_IGN instead of a do-nothing handler for signal events with kqueue
Zack Weinberg 46f1769d 2011-08-30T09:38:18 Fix OSX build: $(OPENSSL_INCS) needs to be after $(AM_CPPFLAGS).
Nick Mathewson e9cccce6 2011-08-29T17:51:45 Merge remote-tracking branch 'origin/patches-2.0'
Joachim Bauch 54f7e61b 2011-08-29T23:39:26 clear read watermark on underlying bufferevent when creating filtering bev to fix potentially failing fragmented ssl handshakes
Nick Mathewson 6476d92d 2011-08-29T13:40:03 Checkpoint changelog entries for 2.0.14-stable
Nick Mathewson 904254f9 2011-08-28T14:51:36 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson e6af35d7 2011-08-24T21:39:28 Correctly terminate IO on an async bufferevent on bufferevent_free
Nick Mathewson 0ff2c5a9 2011-08-24T18:42:12 Have test-ratelim.c support IOCP
Nick Mathewson a98da7bf 2011-08-24T18:41:35 Make IOCP rate-limiting group support stricter and less surprising. Previously, we wouldn't decrement read/write buckets because of IOCP reads and writes until those reads and writes were complete. That's not so bad on the per-connection front. But for group limits, the old approach makes us launch a huge amount of reads and writes whenever the group limit becomes positive, and then decrement the limit to a hugely negative number as they complete. With this patch, we decrement our read buckets whenever we launch an IOCP read or write, based on the maximum that tried to read or write. Later, when the operations finish, we re-increment the bucket based on the portion of the request that couldn't finish.
Nick Mathewson c75341b0 2011-08-24T18:42:00 Support negative arguments to _bufferevent_decrement_(read/write)_buckets()
Harlan Stenn 6d2613be 2011-08-27T04:46:10 We need AM_CPPFLAGS when compiling bufferevent_openssl.c
Harlan Stenn 1c638607 2011-08-28T14:30:52 Use pkg-config (if available) to handle OpenSSL.
Harlan Stenn 674dc3d3 2011-08-27T04:06:49 Provide the autoconf m4 macros for the new OpenSSL via pkg-config stuff.
Nick Mathewson b260065a 2011-08-28T14:06:03 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 2f51dc03 2011-08-28T14:03:10 Cleanup on 7c11e51e1ab: fix strtol usage
Nick Mathewson 6056d6e0 2011-08-28T14:02:40 Cleanup on 7c11e51e1ab: restore c90 declaration compliance
Harlan Stenn 7c11e51e 2011-08-27T05:48:11 Clean up some problems identified by Coverity.
Nick Mathewson 2cbe115c 2011-08-24T16:17:56 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 5b18f130 2011-08-24T16:17:05 Make rate limiting work with common_timeout logic
Nick Mathewson 0d108044 2011-08-18T15:18:14 Merge remote-tracking branch 'origin/patches-2.0'