|
f28084dd
|
2011-03-07T23:18:07
|
|
munge the debug_lock signature before freeing it: it might help us catch use-after-free
|
|
b4a29c0a
|
2011-03-07T23:08:42
|
|
Add a magic number to debug_locks to better catch lock-coding errors.
Original description by Dave Hart:
[This patch contains] the addition of a signature field to debug_lock
initialized by the alloc routine and verified by the rest, to catch
invalid lock pointers sooner. That helped me track down a nasty
problem I had before adding the time.h include to
libevent-internal.h, where different .c files had different ideas of
whether event_base had a tod_tv_cache member depending on which
included time.h before libevent-internal.h.
|
|
2a83ecc8
|
2011-03-07T23:01:54
|
|
In the 2.1 branch, let's try out lazy gettimeofday/clock_gettime comparison
For now, we'll only check for gettimeofday jumps once every 5 seconds.
Let's see how that works.
This reverts commit 5209fadfd07af3f3379ac607582c37933b33e044.
|
|
4560b31b
|
2011-03-07T23:00:45
|
|
Merge remote branch 'origin/patches-2.0'
Conflicts:
event-internal.h
|
|
5209fadf
|
2011-03-07T22:59:19
|
|
Disable lazy gettimeofday/clock_gettime comparison for now
|
|
9193dc4e
|
2011-03-07T22:45:10
|
|
Merge branch '20_timescale' into patches-2.0
|
|
c5389594
|
2011-03-07T21:59:47
|
|
Merge remote branch 'origin/patches-2.0'
|
|
c8baac90
|
2011-03-07T21:55:47
|
|
Followup for Tomash Brechko's http patch
This patch makes bufferevent_disable_hard() non-public, and
adds a comment about what it's for and why it's used.
|
|
5dc56628
|
2011-02-24T12:30:40
|
|
Workaround libevent bug
https://sourceforge.net/tracker/index.php?func=detail&aid=3078187&group_id=50884&atid=461324
The problem is that bufferevent_disable() doesn't disable EV_WRITE
when 'connecting' flag is set. However from evhttp_connection_reset()
we want to disable EV_WRITE for sure (we are closing the socket next).
So we add bufferevent_disable_hard(), which acts like
bufferevent_disable(), but resets 'connecting' flag before the call to
the actual handler.
TODO: bufferevent_disable_hard() shouldn't be public, remove it from
event2/bufferevent.h.
|
|
a459ef70
|
2011-03-03T15:34:22
|
|
Have event_base_gettimeofday_cached() always return wall-clock time
Based on code by Dave Hart
|
|
74bf57a6
|
2011-03-03T12:58:06
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
ab008c7d
|
2011-03-03T12:57:17
|
|
Make --no-libevent-install apply to event1 headers too
|
|
83fb674a
|
2011-02-25T10:42:58
|
|
Merge remote branch 'origin/patches-2.0'
|
|
b5ab9555
|
2011-02-25T10:35:12
|
|
Make --no-libevent-install apply to headers too
|
|
975eacad
|
2011-02-23T11:25:09
|
|
Merge remote branch 'origin/patches-2.0'
|
|
3f79a3a0
|
2011-02-23T09:19:08
|
|
Continue AM_CFLAGS to AM_CPPFLAGS correction
9c469db300e1b270a93c6b04c1709ac0f7751136 had started with the conversion
but left out another instance of incorrectly used AM_CFLAGS.
Dave Hart provided the suggestion for this fix.
|
|
e2e3c322
|
2011-02-22T18:55:05
|
|
Merge remote branch 'origin/patches-2.0'
|
|
5dc200b7
|
2011-02-22T18:53:55
|
|
Merge branch '20_uri_nonconformant' into patches-2.0
|
|
6350e6c4
|
2011-02-22T17:52:50
|
|
Add new evhttp_{connection_}set_timeout_tv() functions to set finger-grained http timeouts
|
|
a11c30b5
|
2011-02-22T17:41:27
|
|
Merge remote branch 'origin/patches-2.0'
This branch is the big one that merges all the ntp folks' changes
Conflicts:
configure.in
|
|
2fba21d8
|
2011-02-22T16:20:42
|
|
Make -ffunction-sections off-by-default in 2.0.x
I don't see how this can burn anybody, but I don't want to take
chances: new build options are something that should be done in an
alpha. To turn -ffunction-sections on, pass
--enable-function-sections to configure.
|
|
7d913f4c
|
2011-02-22T16:14:16
|
|
Remove nonfunctional enable_libevent_(install|regress)_def variables
|
|
15b2408c
|
2011-02-22T16:13:49
|
|
Use $(), not @@, for LIBEVENT_GC_SECTIONS
|
|
f95bafb6
|
2011-02-22T00:34:49
|
|
Be explicit about how long event loops run in event.h documentation
|
|
039b9bd0
|
2011-02-22T00:31:56
|
|
Use %s with printf in test.sh
|
|
9c469db3
|
2011-02-13T02:27:42
|
|
Correct an AM_CFLAGS to an AM_CPPFLAGS in test/Makefile.am
|
|
49e9bb7f
|
2011-02-13T02:05:04
|
|
Add configure options to disable installation, regression tests
The main reason for disabling installation is if you're building
libevent as a subpackage for embedding: you want to have your main
package's "make all" build libevent, but you don't want your main
package's "make install" to install libevent.
|
|
0b334799
|
2011-02-13T02:00:10
|
|
Add -D_OSF_SOURCE to fix hpux builds
|
|
0965c563
|
2011-02-13T01:50:40
|
|
Use the gcc -ffunction-segments feature to allow gc when linking with static libevent
|
|
af08a940
|
2011-02-13T01:42:58
|
|
Check for getservbyname even if not on win32.
|
|
833e5e9f
|
2011-02-13T01:39:10
|
|
Fix autoconf bracket issues; make check for getaddrinfo include netdb.h
|
|
a317c068
|
2011-02-13T01:34:40
|
|
Skip check for zlib if we have no zlib.h
|
|
05a2c22f
|
2011-02-13T01:30:37
|
|
Make test-eof fail with a timeout if we never get an eof.
Previously, it would just wait forever.
|
|
4eb281c8
|
2011-02-13T01:29:54
|
|
FIX: comment internal headers used in sample code.
|
|
eb692be9
|
2011-02-13T01:27:06
|
|
NM: Fix sample/http-server ipv6 fixes
Fix 1: Use #include "../xyz" rather than #include <../xyz>
Fix 2: util-internal.h includes ipv6-internal.h, which in turn defines
a replacement AF_INET6 on platforms that don't have it. As such,
the AF_INET6 checks shouldn't be needed. (right?)
|
|
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
|
|
8f5cca47
|
2011-02-21T23:27:23
|
|
Merge remote branch 'origin/patches-2.0'
|
|
63a715e1
|
2011-02-21T23:25:13
|
|
Correctly detect and stop non-chunked http requests when the body is too long
Based on analysis and code from Bas Verhoeven and from
Constantine Verutin.
|
|
deb2f738
|
2011-02-18T16:17:22
|
|
fix spelling mistake in whatsnew-2.0.txt
|
|
f6659246
|
2011-02-15T11:33:40
|
|
Correct evhttp_del_accept_socket documentation on whether socket is closed
Thanks to Constantine Verutin for pointing this out.
|
|
0c9be768
|
2011-02-13T02:51:27
|
|
Merge branch '20_evport_pollhup' into patches-2.0
|
|
926f8165
|
2011-02-13T00:54:21
|
|
Clarify event_set_mem_functions doc
|
|
95060b54
|
2011-02-13T00:41:22
|
|
Make URI parser able to tolerate nonconformant URIs.
If the EVHTTP_URI_NONCONFORMANT flag is passed in (which it is when
parsing URIs we get over the wire), then we relax our checks a lot.
Specifically, we do nothing to check for correct characters in the
path, query, and fragment parts of such a URI.
We could do much more here: we could relax our hostname requirements,
deal with spaces differently/better, trap some errors but not others,
etc. But this should solve the worst user-agent compatibility issues
for now; the other issues can wait for a later release.
|
|
9f5bf663
|
2011-02-08T22:24:51
|
|
Merge remote branch 'origin/patches-2.0'
|
|
f7361980
|
2011-02-08T22:24:06
|
|
Fix a type error in our (unused) arc4random_stir()
|
|
4cb3f53a
|
2011-02-03T14:04:25
|
|
Merge remote branch 'origin/patches-2.0'
|
|
f663112f
|
2010-10-14T20:15:04
|
|
Fix warnings about AC_LANG_PROGRAM usage
Autoconf 2.68 introduced some new warnings that were triggered during
autogen.sh. Fix those.
|
|
86f02d75
|
2011-02-01T02:12:46
|
|
Merge remote branch 'origin/patches-2.0'
|
|
b4f89b60
|
2011-02-01T01:15:48
|
|
Fix test.sh output on solaris
Solaris echo -n doesn't omit newlines, but printf omits newlines in
more places.
|
|
c1260b0e
|
2011-01-31T17:36:49
|
|
Do not check for gethostbyname_r versions if we have getaddrinfo
|
|
22845886
|
2011-01-31T16:45:23
|
|
Merge remote branch 'origin/patches-2.0'
|
|
3c8f4e75
|
2011-01-31T16:44:06
|
|
Add compile-time check for AF_UNSPEC==PF_UNSPEC
|
|
6092f126
|
2011-01-31T16:37:27
|
|
Fix http unit test on non-windows platforms without getaddrinfo
|
|
cb921139
|
2011-01-31T16:32:05
|
|
Build on systems without AI_PASSIVE
|
|
713c254d
|
2011-01-24T18:55:10
|
|
Try to build correctly on platforms with no IPv6 support
|
|
9184563e
|
2011-01-24T18:29:20
|
|
Build correctly on platforms without sockaddr_storage
|
|
453317b2
|
2011-01-24T18:22:32
|
|
Fall back to sscanf if we have no other way to implement strtoll
|
|
da13d644
|
2011-01-24T18:02:11
|
|
Merge remote branch 'origin/patches-2.0'
|
|
32677036
|
2011-01-24T17:42:23
|
|
Make --enable-gcc-warnings a no-op if not using gcc
|
|
f1f85147
|
2011-01-24T15:50:25
|
|
Allow use of --enable-silent-rules for quieter compilation with automake 1.11
|
|
8b0afe96
|
2011-01-12T21:41:58
|
|
Merge remote branch 'origin/patches-2.0'
|
|
0c0ec0be
|
2011-01-12T20:28:47
|
|
Correctly free selectop fields when select_resize fails in select_init
|
|
83e805a4
|
2011-01-07T13:18:09
|
|
Handle resize failures in the select backend better.
|
|
3f8d22a1
|
2010-12-18T02:40:22
|
|
Use event_err() only if the failure is truly unrecoverable.
|
|
666b0966
|
2010-12-18T01:07:27
|
|
Detect and handle more allocation failures.
|
|
b647e0bc
|
2011-01-07T12:31:30
|
|
Merge remote branch 'kev009/21_ac_use_system_extensions'
|
|
ded0a090
|
2011-01-07T00:41:37
|
|
Add evconfig-private to remaining files
|
|
fd7b5a81
|
2011-01-07T00:37:05
|
|
Shell hack for weird mkdir -p commands
|
|
c13e1859
|
2011-01-07T00:34:22
|
|
Remove use and reference to event-private.h
|
|
f1e9a7e7
|
2011-01-06T12:44:45
|
|
Merge remote branch 'origin/patches-2.0'
|
|
0144886e
|
2011-01-02T10:17:15
|
|
Check for POLLERR, POLLHUP and POLLNVAL for Solaris event ports
|
|
f964b721
|
2011-01-03T15:44:26
|
|
Prefer the ./configure evconfig-private.h in MinGW, just in case.
|
|
ad03952e
|
2011-01-03T15:09:21
|
|
Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5)
|
|
b3651d15
|
2011-01-02T08:48:12
|
|
Add an evconfig-private.h stub for Win32.
|
|
dc628c03
|
2011-01-02T08:47:46
|
|
Add an include guard
|
|
0915ca0a
|
2011-01-02T08:43:45
|
|
Include evconfig-private.h in internal files for great good.
|
|
f6d66bc7
|
2011-01-02T08:05:33
|
|
Fix a comment warning and add evconfig-private.h to .gitignore
|
|
9b27b307
|
2011-01-02T08:04:12
|
|
Remove event-private.h and switch to evconfig-private.h
|
|
868f8887
|
2011-01-02T07:51:23
|
|
Use a Configuration Header Template for evconfig-private.h
|
|
edf62ddd
|
2011-01-02T07:29:45
|
|
Revert "evconfig-private.h with recusive configure subdirs"
This reverts commit ed53d5ef8053af08186ef80dfc1647cff769fac8.
|
|
ed53d5ef
|
2011-01-02T06:35:05
|
|
evconfig-private.h with recusive configure subdirs
|
|
ea8fa4cb
|
2011-01-02T05:14:41
|
|
Add AC_GNU_SOURCE to the fallback case.
|
|
ac690424
|
2011-01-02T00:59:20
|
|
Merge remote branch 'origin/patches-2.0'
|
|
cb8059d2
|
2011-01-01T21:37:21
|
|
Fix compilation on Windows with NDEBUG
Dongsheng Song reports that when building on windows with NDEBUG, you
run into an attempt to do EVUTIL_ASSERT(x) where x is a bitfield,
which turns into _EVUTIL_NIL_CONDITION(x), which takes sizeof(x),
which is illegal. This patch fixes _EVUTIL_NIL_CONDITION to work on
bitfields too.
|
|
b42ce4bf
|
2011-01-01T21:17:31
|
|
Fix evport handling of POLLHUP and POLLERR
In other backends, they make _all_ events trigger; with evport they
previously triggered nothing. Found by Phua Keat Yee.
|
|
c51ef930
|
2010-12-22T23:24:01
|
|
Eliminate a couple more manual internal _GNU_SOURCE defines
|
|
3b265412
|
2010-12-22T23:08:10
|
|
Remove internal usage of _GNU_SOURCE
|
|
2c5566a9
|
2010-12-22T23:00:59
|
|
Add event-private.h to noinst_HEADERS
|
|
321b5587
|
2010-12-22T22:53:03
|
|
Filter '# define' statements from autoconf and generate event-private.h
|
|
1fa7dbe1
|
2010-12-22T22:11:26
|
|
Add AC_USE_SYSTEM_EXTENSIONS to configure.in.
Requires follow on patches for correctness and robustness.
|
|
41bb1cae
|
2010-12-20T19:30:13
|
|
Merge branch 'file_offset_v2'
|
|
0aad0143
|
2010-12-20T18:40:03
|
|
Refactor addfile tests; add test for big files and for offsets
|
|
3f405d2d
|
2010-10-25T12:29:39
|
|
Add CreateFileMapping file_segment implementation for win32
|
|
c2d9884a
|
2010-10-25T12:10:10
|
|
Add support for mmaps with nonzero offset values. Needs testing.
|
|
e72afae0
|
2010-10-21T19:45:49
|
|
Add evbuffer_add_file_segment() so one fd can be used efficiently in more than one evbuffer_add_file at a time
|
|
076680ab
|
2010-12-16T14:37:15
|
|
Merge branch 'epoll_table_v2'
|
|
d4970d4e
|
2010-12-16T14:36:09
|
|
Reindent epoll_apply_one_change()
|
|
2d55a190
|
2010-12-16T14:25:04
|
|
Clean up error handling in epoll_apply_one_change() a little
The old code was more or less:
if (op == X && errno == FOO) {
...
} else if (op == Y && errno == BAR) {
...
}
but really we wanted to do a switch (op) to avoid needless checks
and branches.
This patch leaves the indentation a little weird so as to make it
easier to see what changed; the next patch will fix the indentation.
|
|
8c83eb69
|
2010-10-24T12:53:52
|
|
Replace big chain of if/thens in epoll.c with a table lookup
This should save a bunch of branches by doing instead a lookup in a
nice static table.
To ensure correctness, the table is generated from a Python script,
included with this commit.
|