2832 Commits

Author SHA1 Message Date
Nick Mathewson
efb644ed87 Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
	test/rpcgen_wrapper.sh
2012-11-16 10:29:37 -05:00
Nick Mathewson
f3009e48c7 Make rpcgen_wrapper.sh work on systems without a "python2" binary 2012-11-16 10:28:19 -05:00
Nick Mathewson
4343edf3c6 Add a unit test in which an event is created with event_base_once() but never fires 2012-11-16 10:17:34 -05:00
Nick Mathewson
0a396a02ba Merge branch '21_event_cleanup_v3' 2012-11-16 10:13:15 -05:00
Nick Mathewson
c17dd59191 Free dangling event_once objects on event_base_free()
This patch makes us keep event_once objects in a doubly linked list
so we can free any once that haven't triggered when we call
event_base_free().
2012-11-16 10:05:04 -05:00
Nick Mathewson
1f5a48d1d0 Merge remote-tracking branch 'origin/patches-2.0' 2012-11-15 11:45:12 -05:00
Nick Mathewson
ac009f9245 Warn when openssl version in unit test mismatches compiled version. 2012-11-15 11:43:45 -05:00
Nick Mathewson
c2f30863e2 Fix renegotiation test to work around openssl 1.0.1 bug
There's a bug in openssl 1.0.1 where TLS1.1 and TLS1.2 can't
renegotiate with themselves.  When testing renegotiation with OpenSSL
>=1.0.1 and <1.0.1d, disable those protocols.
2012-11-15 11:43:45 -05:00
Nick Mathewson
1d9d5110a4 Use the same CFLAGS for openssl when building unit tests as with libevent 2012-11-15 11:41:36 -05:00
Nick Mathewson
64051b903a Clean up unit test for evbuffer_file_segment_add_cleanup_cb a little 2012-11-06 17:42:54 -05:00
yangacer
e9f8febace Add a new callback to get called on evbuffer_file_segment free 2012-11-06 17:42:54 -05:00
Nick Mathewson
f9182d7249 Merge remote-tracking branch 'github/20_win64_compilation' into 21_win64_compilation
Conflicts:
	http.c
	signal.c
2012-11-02 11:46:14 -04:00
Nick Mathewson
62bd2c44f1 Fix compilation on mingw64 with -DUSE_DEBUG 2012-11-02 11:44:29 -04:00
Nick Mathewson
56e48c1019 Fix a few mingw64 incompatibilities introduced since 2.0 2012-11-02 10:58:02 -04:00
Nick Mathewson
2e6a985003 Merge remote-tracking branch 'github/20_win64_compilation' into 21_win64_compilation
Conflicts:
	event.c
	http.c
	sample/event-read-fifo.c
	test/regress_bufferevent.c
2012-11-01 18:12:07 -04:00
Nick Mathewson
6810908a5f Fix some warnings found cross-compiling with mingw32 2012-11-01 18:05:27 -04:00
Nick Mathewson
94866c2763 Compile without warnings on mingw64
This is mostly a matter of catching cases where we were still
assuming that evutil_socket_t could be used as an int.
2012-11-01 17:56:06 -04:00
Nick Mathewson
b738ee189f Merge remote-tracking branch 'rosslagerwall/python2' 2012-11-01 10:19:01 -04:00
Nick Mathewson
32ed11024a Merge remote-tracking branch 'origin/patches-2.0' 2012-10-26 19:37:00 -04:00
Nick Mathewson
2479d96405 Merge remote-tracking branch 'rosslagerwall/python2-2.0' into patches-2.0 2012-10-26 19:36:44 -04:00
Nick Mathewson
d5318b664d Merge remote-tracking branch 'origin/patches-2.0' 2012-10-26 19:34:47 -04:00
Juan Pablo Fernandez
cb853ea36c Close IOCP listener socket on free when LEV_OPT_CLOSE_ON_FREE is set 2012-10-26 19:33:31 -04:00
Nick Mathewson
cda69d0df0 Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
	bufferevent_openssl.c
2012-10-24 22:55:17 -04:00
Nick Mathewson
1ff2c249bd Merge remote-tracking branch 'public/20_bev_timeout_semantics' into patches-2.0 2012-10-24 22:48:59 -04:00
Ross Lagerwall
0eb01099da Use python2 rather than python
python may refer to either python2 or python3 so rather by explicit by
using python2.
See PEP 394 - http://www.python.org/dev/peps/pep-0394/ for more
details.
2012-10-23 13:30:58 +01:00
Ross Lagerwall
4b5f32a59e Use python2 rather than python
python may refer to either python2 or python3 so rather by explicit by
using python2.
See PEP 394 - http://www.python.org/dev/peps/pep-0394/ for more
details.
2012-10-23 13:26:44 +01:00
Nick Mathewson
f2050e79d5 Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
	bufferevent_openssl.c
2012-09-22 19:21:21 -04:00
Joachim Bauch
1acf2ebcff No need to reserve space if reading is suspended.
Conflicts:
	bufferevent_openssl.c
2012-09-22 18:09:21 -04:00
Joachim Bauch
f719b8a918 Stop looping in "consider_reading" if reading is suspended. 2012-09-22 18:06:57 -04:00
Nick Mathewson
8827dbc3e9 Merge remote-tracking branch 'origin/patches-2.0' 2012-09-12 20:19:22 -04:00
George Danchev
f2bff75ed8 FIx another memleak on OOM in evdns 2012-09-12 20:12:03 -04:00
George Danchev
73e85dd08f Avoid a memory-leak on OOM in evdns. 2012-09-12 20:11:12 -04:00
Nick Mathewson
ffe1643b98 Add missing return value in event_base_foreach_event
Fix for github issue nmathewson/Libevent #65

Found by Joachim Bauch
2012-09-10 13:43:26 -04:00
Nick Mathewson
576b29f21b Don't discard SSL read event when timeout and read come close together 2012-09-07 15:53:02 -04:00
Nick Mathewson
232055ef49 Tweak patch for event_base_foreach_event()
* Fix whitespace
* Explain return value from callback function
* Reinstate return value so that caller can tell whether forech
  exited early.
* Rename event_base_foreach_event_() to
  event_base_foreach_event_nolock_().
* Use event_base_foreach_event_cb_fn typedef in more places
* Be more dire about undefined behavior.
2012-09-07 09:58:24 -04:00
Roman Puls
84fd6d7506 Expose event_base_foreach_event() as a public API. 2012-09-07 09:47:50 -04:00
Nick Mathewson
e8faa2c74c Merge pull request #61 from rosslagerwall/rename-configure
Rename configure.in to configure.ac.
2012-09-04 07:58:38 -07:00
Joachim Bauch
b7577868a8 Prevent reference leak of bufferevent if getaddrinfo fails. 2012-09-03 17:49:15 +02:00
Ross Lagerwall
b3fea67385 Rename configure.in to configure.ac.
".ac" is the preferred extension.
2012-09-03 08:37:25 +02:00
Nick Mathewson
b7f6e89ab9 We now require automake 1.9 or later. Modernize! 2012-08-28 16:22:00 -04:00
Nick Mathewson
1e3123dae1 Fix handling of no-python case for nonrecursive make 2012-08-28 16:15:14 -04:00
Nick Mathewson
607a8ff9df Be quiet when making regress.gen.[ch] 2012-08-28 16:14:38 -04:00
Nick Mathewson
aa59c1e924 New --quiet option for event_rpcgen.py 2012-08-28 16:14:17 -04:00
Nick Mathewson
371a1237d0 Make quiet build even quieter 2012-08-28 16:07:56 -04:00
Nick Mathewson
6cdfeebebc Rename subordinate Makefile.ams to include.am 2012-08-28 16:01:14 -04:00
Nick Mathewson
7092f3b677 Switch to non-recursive makefiles
This approach should let Make work better, let libevent build faster
(especially when using a parallelized build), and basically make the
Makefiles easier to maintain.

See http://miller.emu.id.au/pmiller/books/rmch/ for more info on why
you'd want to do this.

This is due to an idea from Zack Weinberg; the patch is my own.
2012-08-28 15:58:18 -04:00
Nick Mathewson
7b18e5c633 Enable silent build rules by default. Override with V=1 2012-08-28 15:10:55 -04:00
Nick Mathewson
7d60ba84d9 Use newer syntax for autoconf/automake init 2012-08-28 15:09:49 -04:00
Nick Mathewson
2aad8cbb62 Merge remote-tracking branch 'origin/patches-2.0' 2012-08-24 11:41:18 -04:00
Nick Mathewson
484e93c1d0 Increment version to 2.0.20-stable-dev 2012-08-24 11:40:46 -04:00