|
95e2455c
|
2012-01-24T16:08:00
|
|
When including an -internal.h header outside the main tree, do so early
Some of our unit tests and sample code need functions and structures
defined in an -internal.h header. But that can freak out OpenSolaris,
where stdio.h wants to define _FILE_OFFSET_BITS unless it's already
defined, and then evconfig-internal.h defines it. Regular users
should never ever use our -internal.h headers, so the solution is
to make sure that if we're going to use them ourselves, we do so
before system headers.
|
|
0cb70e33
|
2011-10-26T10:17:21
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
3c824bd3
|
2011-10-24T13:18:09
|
|
Update copyright dates to 2011.
|
|
904254f9
|
2011-08-28T14:51:36
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
0ff2c5a9
|
2011-08-24T18:42:12
|
|
Have test-ratelim.c support IOCP
|
|
9f560bfa
|
2011-05-25T19:50:56
|
|
Use "_WIN32", not WIN32: it's standard and we don't need to fake it
This patch was automatically generated with perl.
Based on a patch by Peter Rosin.
|
|
bbf55150
|
2011-02-13T01:25:33
|
|
Include util-internal.h as needed to build on platforms with no sockaddr_storage
|
|
10c834c4
|
2011-02-13T01:22:25
|
|
Include arpa/inet.h as needed on HPUX
|
|
c0bf63ce
|
2010-12-02T14:13:33
|
|
tests: Use relative includes ("") instead of system includes (<>)
|
|
1115366e
|
2010-09-07T10:28:15
|
|
Fix a few memory leaks in the tests
|
|
0bffe43a
|
2010-08-09T12:08:40
|
|
Fix a nasty dangling-event bug when using rate-limiting groups
When we freed a bufferevent that was in a rate-limiting group and
blocked on IO, the process of freeing it caused it to get removed
from the group. But removing the bufferevent from the group made
its limits get removed, which could make it get un-suspended and in
turn cause its events to get re-added. Since we would then
immediately _free_ the events, this would result in dangling
pointers.
Fixes bug 3041007.
|
|
b2c6202d
|
2010-08-04T15:52:32
|
|
Fix an assertion bug in test-ratelim
If the rate limit was low enough, then the echo_conns wouldn't finish
inside the 300 msec we allowed for them to close. Instead, count the
number of connections we have, and keep waiting until they are all
closed.
|
|
42f6b624
|
2010-08-04T15:51:14
|
|
Add option to test-ratelim to test min_share
|
|
75701e89
|
2010-05-14T14:30:09
|
|
Add some missing includes to fix Linux build again
|
|
b5bfc44d
|
2010-05-13T15:38:39
|
|
Make test-ratelim clean up after itself better.
|
|
2b44dcca
|
2010-05-13T12:01:30
|
|
Add options to test-ratelim.c to check its results
The new options let you specify a maximum deviation of bandwidth used
from expected bandwidth used, and make test-ratelim.c exit with a
nonzero status when those deviations are violated.
This patch also adds a test-ratelim.sh script to run test-ratelim with
a few sensible options for testing.
|
|
17efc1cd
|
2010-03-04T01:25:51
|
|
Update all our copyright notices to say "2010"
|
|
e5bbd40a
|
2010-02-18T17:41:15
|
|
Clean up formatting: use tabs, not 8-spaces, to indent.
|
|
b72be50d
|
2010-02-18T13:52:04
|
|
Add some headers to fix freebsd compilation
|
|
918e9c5e
|
2010-01-23T16:38:36
|
|
Fix a number of warnings from gcc -pedantic
|
|
e2ca403f
|
2010-01-23T16:23:45
|
|
Make it compile under gcc --std=c89.
|
|
97a8c790
|
2010-01-22T00:34:21
|
|
Fix compilation of rate-limit code when threading support is disabled
|
|
165d30e3
|
2009-12-30T14:29:56
|
|
Fix compilation of rate-limiting code on win32.
|
|
885b4273
|
2009-12-30T13:50:52
|
|
Fix test-ratelim compilation on Linux.
I'd forgotten to include time.h, and to link against libm.
|
|
f0c0124e
|
2009-12-23T07:54:13
|
|
Testing code for bufferevent rate-limiting.
This is not part of the regression tests, since running it necessarily
takes a while. There is a new test-ratelim test; run it with '-h'
for an argument to see its options.
|