2545 Commits

Author SHA1 Message Date
Nick Mathewson
128c8d6c0f Merge remote-tracking branch 'origin/patches-2.0' 2011-10-19 22:44:33 -04:00
Leonid Evdokimov
9e6a4efa51 More detailed message in case of libevent self-debugging failure. 2011-10-19 22:41:15 -04:00
Nick Mathewson
5e42202d59 Style and comment tweaks for dns/leak* tests 2011-10-19 22:41:11 -04:00
Leonid Evdokimov
f7841bfc70 Test for commit aff6ba1 2011-10-19 22:34:09 -04:00
Nick Mathewson
fc1a2514a1 Merge remote-tracking branch 'origin/patches-2.0' 2011-10-19 22:20:15 -04:00
Leonid Evdokimov
21a08d6869 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.
2011-10-19 22:15:35 -04:00
Leonid Evdokimov
d58c15ee84 Tests for 94fba5b and f72e8f6 2011-10-19 22:15:29 -04:00
Joachim Bauch
95a8b87a23 fixed typo 2011-10-17 21:48:23 +02:00
Joachim Bauch
ba24f616e5 added comments to describe refcounting of multicase chains 2011-10-17 21:46:12 +02:00
Nick Mathewson
e0b81ba3aa Merge remote-tracking branch 'origin/patches-2.0' 2011-10-12 01:02:13 -04:00
Nick Mathewson
8589f6c45b Bump version to 2.0.15-stable-dev 2011-10-12 01:00:23 -04:00
Nick Mathewson
ab0f5f18fd Merge remote-tracking branch 'origin/patches-2.0' 2011-10-12 00:57:55 -04:00
Nick Mathewson
c54c2358e5 Credit a patch from a one-named user release-2.0.15-stable 2011-10-12 00:39:22 -04:00
Nick Mathewson
78d80413b2 Merge remote-tracking branch 'origin/patches-2.0' 2011-10-12 00:22:54 -04:00
Nick Mathewson
4d9529fcfa Increment version to 2.0.15-stable 2011-10-12 00:22:17 -04:00
Nick Mathewson
177f28680e Merge remote-tracking branch 'origin/patches-2.0' 2011-10-12 00:21:29 -04:00
Nick Mathewson
7c3e06120b Add changelog for 2.0.15-stable 2011-10-12 00:16:12 -04:00
Alexander Drozdov
998c81389f bufferevent: Add functions to set/get max_single_read/write values. 2011-10-11 10:15:39 -04:00
Nick Mathewson
3c55b5ee0a Make evbase_priority_init() and evbase_get_npriorities() threadsafe 2011-10-11 09:50:57 -04:00
Alexander Drozdov
ee3a4ee880 Add event_base_get_npriorities() function. 2011-10-11 09:43:12 -04:00
Nick Mathewson
fed8f6e484 Merge remote-tracking branch 'origin/patches-2.0' 2011-10-10 11:34:26 -04:00
Greg Hazel
ba5c27d47f refer to non-deprecated evdns functions in comments 2011-10-10 11:33:15 -04:00
Nick Mathewson
c6bbbf1b67 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.
2011-10-06 18:05:16 -04:00
Nick Mathewson
8358877768 Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
	buffer.c
	test/regress_buffer.c
2011-10-06 15:21:55 -04:00
Nick Mathewson
706aa5f416 Merge remote-tracking branch 'github/20_addfile_ssl' into patches-2.0 2011-10-06 15:11:50 -04:00
Nick Mathewson
5760efb1b6 Merge branch '21_largefile_support' 2011-10-05 15:03:17 -04:00
Nick Mathewson
e0cae789ca Merge branch '21_evloop_noexit' 2011-10-05 11:26:52 -04:00
Nick Mathewson
084e68f3f2 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.
2011-10-05 11:11:44 -04:00
Alexander Drozdov
9593a33fd1 Allow evconnlistener to be created in disabled state. 2011-10-03 12:59:11 -04:00
Nick Mathewson
b3bc77b673 Merge remote-tracking branch 'origin/patches-2.0' 2011-10-03 12:54:35 -04:00
Nick Mathewson
39c0cf7ca4 Fix some "value never used" warnings with gcc 4.6.1 2011-10-03 12:49:02 -04:00
Nick Mathewson
2b768479e4 Make write-checking fixes use tt_fail_perror 2011-10-03 12:45:36 -04:00
Mark Ellzey
c3b62fd7fd Fixed compiler warnings for unchecked read/write calls. 2011-10-03 12:40:48 -04:00
Nick Mathewson
0ba0af9c6c 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.
2011-09-29 10:32:16 -04:00
Nick Mathewson
46974cd877 Merge remote-tracking branch 'origin/patches-2.0' 2011-09-28 09:23:41 -04:00
Nick Mathewson
1ef1f68462 Make evbuffer callbacks get the right n_added value after evbuffer_add
Patch from Alex.
2011-09-28 09:22:17 -04:00
Nick Mathewson
1ebe795544 Merge remote-tracking branch 'origin/patches-2.0' 2011-09-26 11:11:30 -04:00
Nick Mathewson
296d29a12c Merge branch '20_loopbreak_in_signal' into patches-2.0 2011-09-26 11:07:58 -04:00
Nick Mathewson
65c920c9f1 Merge remote-tracking branch 'origin/patches-2.0' 2011-09-25 07:41:29 -04:00
Nick Mathewson
7f82382a7d Use _SOURCES, not _sources, in sample/Makefile.am
Found by Adrian Chadd
2011-09-25 07:39:00 -04:00
Nick Mathewson
2179d7359f Merge remote-tracking branch 'origin/patches-2.0' 2011-09-16 09:47:14 -04:00
Sergey Avseyev
9ae061acca le-proxy and regress depend on openssl directly 2011-09-16 09:42:01 -04:00
Nick Mathewson
38674d4a5e Merge remote-tracking branch 'origin/patches-2.0' 2011-09-12 15:46:54 -04:00
Leonid Evdokimov
94fba5b9ac Add DNS_ERR_NODATA error code to handle empty replies. 2011-09-12 15:38:05 -04:00
Leonid Evdokimov
2b6eae5999 Fix docstring in dns.h 2011-09-12 15:09:30 -04:00
Nick Mathewson
8a2310408f 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
2011-09-12 14:53:39 -04:00
Nick Mathewson
e20eabd69a Merge branch '21_enable_debugging' 2011-09-12 11:31:19 -04:00
Nick Mathewson
6207826e70 Clarify event_enable_debug_logging a little 2011-09-12 11:31:02 -04:00
Nick Mathewson
4d63758364 Remove calls to deprecated bufferevent functions from evhttp.c 2011-09-12 10:57:37 -04:00
Nick Mathewson
8d3a8500f4 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.
2011-09-12 10:48:35 -04:00