2554 Commits

Author SHA1 Message Date
Nick Mathewson
fd4de1e7fe Add event_config function to limit time/callbacks between calls to dispatch 2011-08-17 22:03:57 -04:00
Nick Mathewson
e067d0e3ac Merge branch '20_low_ratelim' into patches-2.0 2011-08-17 21:47:19 -04:00
Michael Herf
643922e907 Solaris sendfile: correctly detect amount of data sent
Original message:

   Solaris sendfile seems to fail when sending moderately large (<1GB)
   files. Not a 32/64 problem, but a buffer problem.

   Anyone else ever try this? It is definitely broken in http-server.c.

   It seems to be broken in the following way:

   When sendfile sends partial data (EAGAIN, would block), "res" is
   always -1, rather than the amount sent.

   Here's a patch that reads from the "offset" pointer instead to
   discover what was sent. This seems to work:
2011-08-15 13:39:10 -04:00
Nick Mathewson
2fdb8e2204 Merge remote-tracking branch 'ellzey/debug_timer_add_usec' 2011-08-15 11:29:39 -04:00
Nick Mathewson
d7451b0523 Merge remote-tracking branch 'origin/patches-2.0' 2011-08-15 11:14:57 -04:00
Leonid Evdokimov
aff6ba15a1 Fix request_finished memory leak with debugging turned on. 2011-08-15 11:12:57 -04:00
Leonid Evdokimov
9b724b288a Fix evsig_dealloc memory leak with debugging turned on. 2011-08-15 11:12:52 -04:00
Leonid Evdokimov
50be5a14b5 Another docstring fix. 2011-08-15 11:11:10 -04:00
Mark Ellzey
67275433ec more event dbg updates 2011-08-11 16:53:01 -05:00
Nick Mathewson
6d5440e80e Fix handling of group rate limits under 64 bytes of burst
The "min_share" logic, which was designed to prevent piles of
extremely small writes when running up against a group rate limit,
could lead to confusing behavior if you ever set a min_share less
than your burst rate.  If that happened, then as soon as your group
rate limit was exhausted, you'd stop reading/writing, and never
start again, since the amount readable/writeable would never
actually hit min_share.

We now cap min_share at the rate per tick.

Found by George Kadianakis
2011-08-11 15:15:17 -04:00
Mark Ellzey
4b7d298415 added timeout debug logs to include event ptr. 2011-08-11 13:25:24 -05:00
Nick Mathewson
14ec20a7a3 Merge remote-tracking branch 'ellzey/debug_timer_add_usec' 2011-08-11 14:00:01 -04:00
Nick Mathewson
d87a3f71c6 Merge remote-tracking branch 'ellzey/event_debug_flag' 2011-08-11 13:59:02 -04:00
Mark Ellzey
3baab0dce9 Added usec debug in another area for debug 2011-08-11 12:06:54 -05:00
Mark Ellzey
ac43ce0450 Debug addition for printing usec on TIMEOUT debugging. 2011-08-11 11:56:26 -05:00
Nick Mathewson
d4f56353f7 Merge remote-tracking branch 'origin/patches-2.0' 2011-08-10 13:18:30 -04:00
Sebastian Hahn
5d1b255b14 Ignore deprecation warnings on OS X
Starting with Lion, Apple decided to deprecate the system openssl. We
can start requiring users to install their own openssl once OS X doesn't
ship with it anymore.
2011-08-10 19:13:39 +02:00
Joachim Bauch
26041a8ed8 prevent nested multicast references, reworked locking 2011-08-09 23:08:54 +02:00
Joachim Bauch
9d7368ae2d support adding buffers to other buffers non-destructively 2011-08-09 23:08:46 +02:00
Nick Mathewson
5419803d3a Merge remote-tracking branch 'origin/patches-2.0' 2011-08-08 22:04:46 -04:00
Mitchell Livingston
b4423029b9 Allow OS-neutral builds for platforms where some versions have arc4random_buf 2011-08-08 22:03:34 -04:00
Nick Mathewson
e91d57f1f6 Merge remote-tracking branch 'github/21_split_functions'
Conflicts:
	event.c

The conflicts were with the 21_faster_timeout_adj branch, which
added a "reinsert" function that needed to get renamed to
"reinsert_timeout".  Also, some of the code that 21_split_functions
changes got removed by 21_faster_timeout_adj.
2011-08-08 16:20:53 -04:00
Nick Mathewson
24e2480520 Merge remote-tracking branch 'github/21_faster_timeout_adj' 2011-08-08 16:17:18 -04:00
Mark Ellzey
a9c2c9ab62 changed to --enable-verbose-debug 2011-08-06 01:32:40 -04:00
Nick Mathewson
909c40e5d1 Merge remote-tracking branch 'origin/patches-2.0' 2011-08-03 12:12:47 -04:00
Joachim Bauch
4a343943bd Propagate errors on the underlying bufferevent to the user. 2011-08-03 12:08:58 -04:00
Mark Ellzey
bc7b4e4051 Added --enable-event-debugging in configure 2011-08-02 17:23:52 -04:00
Nick Mathewson
0fcc536bcd Add missing break to evhttp_parse_request_line 2011-08-01 10:30:32 -04:00
Nick Mathewson
e918f15a4c Merge remote-tracking branch 'origin/patches-2.0' 2011-08-01 10:30:02 -04:00
Nick Mathewson
1183f7e24e Fix typo in event_compat.h comments. 2011-08-01 10:27:56 -04:00
Nick Mathewson
77a4d7f406 Merge remote-tracking branch 'origin/patches-2.0' 2011-07-18 23:38:23 -04:00
Nick Mathewson
a2fdf9b04f Bump version to 2.0.13-stable-dev 2011-07-18 23:37:59 -04:00
Nick Mathewson
ac461206c4 Merge remote-tracking branch 'origin/patches-2.0' 2011-07-18 18:23:13 -04:00
Nick Mathewson
80414e22a7 Bump version to 2.0.13-dev release-2.0.13-stable 2011-07-18 18:19:25 -04:00
Nick Mathewson
18667d3c28 Merge remote-tracking branch 'origin/patches-2.0' 2011-07-18 18:07:48 -04:00
Nick Mathewson
62b8ce5877 acks and changelog for 2.0.13-stable 2011-07-18 17:05:20 -04:00
Nick Mathewson
b3b425eb10 Give Makefile.am echo a non-null argument. msys likes this 2011-07-18 12:45:50 -04:00
Nick Mathewson
00a7a0e478 Fix a warning in evutil_rand when building with threads disabled 2011-07-17 21:48:38 -04:00
Nick Mathewson
c629e18287 Merge remote-tracking branch 'origin/patches-2.0' 2011-07-15 10:20:58 -04:00
Nick Mathewson
4a5c82d617 Use AM_CPPFLAGS in sample/Makefile.am, not AM_CFLAGS
Reported by Dagobert Michelsen.
2011-07-15 10:20:01 -04:00
Nick Mathewson
7d08a28c1c Merge remote-tracking branch 'github/21_end_of_buffer'
Conflicts:
	include/event2/buffer.h
2011-07-05 15:07:07 -04:00
Nick Mathewson
b07940ced7 Merge remote-tracking branch 'origin/patches-2.0' 2011-07-05 14:58:35 -04:00
Nick Mathewson
d5bd604a8b Add doxygen to .gitignore 2011-07-05 14:57:08 -04:00
Nick Mathewson
caf695afdb Fix up test_evutil_snprintf 2011-07-05 14:55:09 -04:00
Nick Mathewson
af6a05f723 Merge remote-tracking branch 'github/20_size_fmt' into patches-2.0 2011-07-05 14:51:24 -04:00
Nick Mathewson
16bacbc5de Fix a test-call accidentally in the last commit 2011-07-05 14:43:24 -04:00
Nick Mathewson
cd74c4ec3b More abstraction in test.sh 2011-07-05 14:41:46 -04:00
Nick Mathewson
21be3dff74 Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
	include/event2/buffer.h
	include/event2/thread.h
	include/event2/util.h
2011-07-05 14:38:21 -04:00
Nick Mathewson
341e1b03a8 Merge branch 'doxygen' into patches-2.0 2011-07-05 13:04:30 -04:00
Nick Mathewson
aea0555b76 Update Doxyfile to produce more useful output 2011-07-05 13:01:31 -04:00