2308 Commits

Author SHA1 Message Date
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
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
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
Nick Mathewson
caf133f901 Merge branch 'new_configure_options' 2011-09-12 10:09:28 -04:00
Sebastian Hahn
755026771a 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.
2011-09-12 10:09:21 -04:00
Sebastian Hahn
d46517ee55 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.)
2011-09-12 10:07:44 -04:00
Nick Mathewson
4e8eb6a595 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.
2011-09-09 20:57:54 -04:00
Nick Mathewson
804f77fbb8 Merge remote-tracking branch 'origin/patches-2.0' 2011-09-01 17:39:37 -04:00
Leonid Evdokimov
f72e8f6643 DNS: add ttl for negative answers using RFC 2308 idea. 2011-09-01 11:03:51 -04:00
Nick Mathewson
10c3450fd6 Make --enable-verbose-debug option match its help text 2011-08-31 11:58:40 -04:00
Nick Mathewson
4cbedae95f Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
	Makefile.am
	WIN32-Code/event2/event-config.h
	configure.in
2011-08-31 11:28:37 -04:00
Nick Mathewson
a718b6c31c Increment version to 2.0.14-stable-dev 2011-08-31 11:25:11 -04:00
Nick Mathewson
ac9f2adb45 Credit new contributors for 2.0.14-stable release-2.0.14-stable 2011-08-31 00:23:20 -04:00
Nick Mathewson
da90a9be69 Pick a release date for the changelog 2011-08-30 22:35:51 -04:00
Nick Mathewson
85976ddfa4 Bump version to 2.0.14-stable 2011-08-30 22:28:02 -04:00
Zack Weinberg
148458e0a1 Use SIG_IGN instead of a do-nothing handler for signal events with kqueue 2011-08-30 15:33:02 -04:00
Zack Weinberg
46f1769d41 Fix OSX build: $(OPENSSL_INCS) needs to be after $(AM_CPPFLAGS). 2011-08-30 13:31:53 -04:00
Nick Mathewson
e9cccce6e1 Merge remote-tracking branch 'origin/patches-2.0' 2011-08-29 17:51:45 -04:00
Joachim Bauch
54f7e61ba3 clear read watermark on underlying bufferevent when creating filtering bev to fix potentially failing fragmented ssl handshakes 2011-08-29 17:50:34 -04:00
Nick Mathewson
6476d92d10 Checkpoint changelog entries for 2.0.14-stable 2011-08-29 13:40:03 -04:00
Nick Mathewson
904254f975 Merge remote-tracking branch 'origin/patches-2.0' 2011-08-28 14:51:36 -04:00
Nick Mathewson
e6af35d762 Correctly terminate IO on an async bufferevent on bufferevent_free 2011-08-28 14:39:12 -04:00
Nick Mathewson
0ff2c5a922 Have test-ratelim.c support IOCP 2011-08-28 14:39:12 -04:00
Nick Mathewson
a98da7bfc9 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.
2011-08-28 14:39:11 -04:00
Nick Mathewson
c75341b077 Support negative arguments to _bufferevent_decrement_(read/write)_buckets() 2011-08-28 14:39:11 -04:00
Harlan Stenn
6d2613becc We need AM_CPPFLAGS when compiling bufferevent_openssl.c 2011-08-28 14:31:37 -04:00
Harlan Stenn
1c63860758 Use pkg-config (if available) to handle OpenSSL. 2011-08-28 14:31:28 -04:00
Harlan Stenn
674dc3d34e Provide the autoconf m4 macros for the new OpenSSL via pkg-config stuff. 2011-08-28 14:31:28 -04:00
Nick Mathewson
b260065ab6 Merge remote-tracking branch 'origin/patches-2.0' 2011-08-28 14:06:03 -04:00
Nick Mathewson
2f51dc0311 Cleanup on 7c11e51e1ab: fix strtol usage 2011-08-28 14:03:10 -04:00
Nick Mathewson
6056d6e0df Cleanup on 7c11e51e1ab: restore c90 declaration compliance 2011-08-28 14:02:40 -04:00
Harlan Stenn
7c11e51e1a Clean up some problems identified by Coverity. 2011-08-28 13:44:33 -04:00
Nick Mathewson
2cbe115cbc Merge remote-tracking branch 'origin/patches-2.0' 2011-08-24 16:17:56 -04:00
Nick Mathewson
5b18f13048 Make rate limiting work with common_timeout logic 2011-08-24 16:17:05 -04:00