|
7889c43e
|
2011-05-04T16:23:02
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
7b819f2d
|
2011-05-04T16:37:58
|
|
Libtool brings in the dependencies of libevent_openssl.la automatically
|
|
274dd036
|
2011-05-04T16:34:28
|
|
libssl depends on libcrypto, not the other way around.
|
|
96107974
|
2011-05-03T14:29:44
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
d11e9e0f
|
2011-05-03T14:22:48
|
|
Oops; that new unit test breaks for epoll. Fix it.
|
|
28317a08
|
2011-05-03T13:54:57
|
|
Fix a warn-and-fail bug in kqueue by providing kevent() room to report errors
Apparently, kevent fails gracefully if there is not enough space in its
output events array to report every _event_... but it just dies and returns
-1 if there is not enough space to report every _error_.
There are a couple of possible fixes here. One would to handle -1
returns from kevent better by re-growing the array and retrying... but
that seems a little error prone. Instead, I'm just going to say that
the events array must be large enough to handle all the errors.
This patch also adds a unit test designed to make sure that our
many-events-out code works even if not all the events are added at
once.
|
|
22d50db8
|
2011-05-02T23:22:34
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
9556a7d1
|
2011-05-02T23:22:09
|
|
Add missing words to EVLOOP_NONBLOCK documentation
|
|
1cae2260
|
2011-04-27T21:28:32
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
e7529fa4
|
2011-04-27T21:28:11
|
|
Bump version to 2.0.11-stable-dev
|
|
fc9bc656
|
2011-04-27T20:26:38
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
d4d55196
|
2011-04-27T20:25:57
|
|
Increment version number to 2.0.11-stable
|
|
aaa80ed4
|
2011-04-27T20:17:34
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
8255fda7
|
2011-04-27T20:15:20
|
|
Add more people to the acknowledgments
|
|
6c2ef970
|
2011-04-27T20:07:13
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
d30466fc
|
2011-04-27T20:03:46
|
|
Changelog for 2.0.11-stable
|
|
614b9bd1
|
2011-04-26T23:48:31
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
e49e64e7
|
2011-04-26T23:42:01
|
|
Fix clang warning when resetting connection
This was a regression on 2.0.10-stable: clang was warning about
values that were unused (because event_debug wasn't using them unless
USE_DEBUG was defined). Found by Sebastian Hahn.
|
|
cea45590
|
2011-04-24T22:56:16
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
ea0d019b
|
2011-04-23T02:35:17
|
|
Use AM_CONDITIONAL, not AC_SUBST, to tell automake to build regress
For some reason, this makes mingw much happier about building
regress.exe by default. No, I'm afraid I don't know why.
|
|
18f24ef4
|
2011-04-23T02:31:59
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
7739c86d
|
2011-04-23T02:31:04
|
|
Fix msvc build: it needed to know about _EVENT_HAVE_STRUCT_SOCKADDR_STORAGE
|
|
53d1e450
|
2011-04-23T01:48:11
|
|
Try to fix up CHECK_REGRESS hack to not break on win32
|
|
dd68cce4
|
2011-04-23T01:47:43
|
|
Add missing header for regress_http compilation on win32
|
|
99f147d9
|
2011-04-23T01:47:11
|
|
Merge branch '20_iocp_conn_sockopt' into patches-2.0
|
|
52f9baee
|
2011-04-22T10:54:02
|
|
call setsockopt correctly on connecting() IOCP-bufferevents so shutdown() will work
|
|
614a1712
|
2011-04-22T23:46:25
|
|
Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
evthread.c
|
|
646f9feb
|
2011-04-23T02:22:08
|
|
Zero a struct sockaddr_in before using it
Found by Dave Heart
|
|
744c7456
|
2011-04-23T02:20:59
|
|
Remote some dead code from dns-example.c
Found by Dave Heart
|
|
48c44a6d
|
2011-04-11T17:48:23
|
|
Refactor test_getaddrinfo_async_cancel_stress()
Turns out it didn't need an event base set up.
Spotted by clang's static anaylzer
|
|
65707d7c
|
2011-04-11T17:40:14
|
|
add some (void) casts for unused variables
All these places already have an XXX marker, so we know we need to fix
them later. Let's not clutter the static analysis results with them.
|
|
b693c324
|
2011-04-11T17:32:03
|
|
Actually send NULL request in http_bad_request_test
Issue caught by clang's static analyzer
|
|
3819b62c
|
2011-04-11T17:23:08
|
|
Add a forgotten return value check in the unit tests
Spotted by clang's static analyzer
|
|
b0ff7eb5
|
2011-04-10T14:03:39
|
|
Add an assert to appease clang's static analyzer
It got confused because in EVLOCK_ASSERT_LOCKED(lock) there is an if
(lock) check.
|
|
5208544e
|
2011-03-14T04:24:33
|
|
Fix possible NULL-deref in evdns_cancel_request
The clang static analyzer complained that base might be dereferenced
without being set, but this patch should fix another dereference issue.
|
|
12311ff4
|
2011-03-14T04:13:55
|
|
Add a forgotten NULL check to evhttp_parse_headers
Issue detected by the clang static analyzer
|
|
93a1abb3
|
2011-04-11T18:26:48
|
|
Check return value of evbuffer_add_cb in tests
Caught by clang's static analyzer
|
|
4bac793e
|
2011-04-11T18:03:02
|
|
Be nice and "handle" error return values in sample code
Caught by clang's static analyzer
|
|
ad9ff583
|
2011-04-10T17:23:11
|
|
Fix compilation under LLVM/clang with --enable-gcc-warnings
When compiling using clang (2.9 or lower) do not enable
-Wnormalized=id or -Woverride-init when --enable-gcc-warnings
or --enable-gcc-warnings-advisory is set as these options
are unsupported.
This commit is based on a patch for Tor
(git commit 56bdc844ba68ac0911efc7ad3398f1eafeaaac76 by Steven
Murdoch), Copyright (c) 2007-2011, The Tor Project, Inc.
|
|
34631be0
|
2011-04-21T17:36:30
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
b4f89f00
|
2011-04-21T17:33:13
|
|
Fix a memory leak on win32 socket->event map.
This would lose some memory every time an event_base was freed on win32.
Found by Dimitre Piskyulev.
|
|
364291e9
|
2011-04-21T17:11:41
|
|
Handle calloc failure in evdns. (Found by Dave Hart)
|
|
169eca7b
|
2011-04-21T13:38:29
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
dde3b739
|
2011-04-21T13:30:22
|
|
Merge branch '20_evdns_circular_list_patch' into patches-2.0
|
|
00e91b3c
|
2011-04-20T13:27:31
|
|
Fix a crash bug in evdns server circular list code
Really, this should use a circleq. That's a change for 2.1, though.
|
|
d28fc528
|
2011-04-14T14:20:09
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
2e9f6655
|
2011-04-14T14:15:13
|
|
Fix a couple of memory leaks in samples/http-server.c. Found by Dave Hart.
|
|
3417f680
|
2011-04-13T11:20:30
|
|
Avoid a free(NULL) if out-of-memory in evdns_getaddrinfo. Found by Dave Hart
|
|
bfdda265
|
2011-04-05T17:22:36
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
1a21d7b8
|
2011-04-05T17:21:12
|
|
Fix the check for multicast or broadcast addresses in evutil_check_interfaces
First of all, it is totally okay to have an address end with .255,
depending on what your netmask is, so we shouldn't reject a local
address if it ends with .255.
Second, our check for ending with .255 was broken. So was our check
for class-d addresses.
Found by Dave Hart.
|
|
d7c0ffa1
|
2011-04-05T17:19:00
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
fc7f34bd
|
2011-04-05T17:17:51
|
|
Merge branch '20_socktype_protocol_nomem' into patches-2.0
|
|
637d17a1
|
2011-04-05T16:32:39
|
|
Check for allocation failures in apply_socktype_protocol_hack
|
|
ddcca176
|
2011-04-04T15:09:47
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
0d6622e2
|
2011-03-31T19:11:10
|
|
Fix the case when failed evhttp_make_request() leaved request in the queue.
|
|
218cf197
|
2011-03-24T15:52:34
|
|
Fix subtle recursion in evhttp_connection_cb_cleanup().
|
|
272823f8
|
2011-03-23T12:05:33
|
|
Reset outgoing connection when read data in idle state.
Imagine server side is buggy and miscalculates Content-Length: in the
reply. Data arriving in idle state shouldn't make us crash, instead we
can just reset the connection.
|
|
7a91f732
|
2011-03-23T16:34:58
|
|
Merge remote branch 'origin/patches-2.0'
|
|
c6213591
|
2011-03-23T16:32:42
|
|
Add comment to configure.in to explain gc-sections test logic
(Basically, we need access to conftest.err for the test to work properly.)
|
|
6bb23e4b
|
2011-03-23T16:22:57
|
|
Fix for --gc-sections on NetBSD
This patch fixes http://bugs.ntp.org/1844, works around
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=40401, by
improving the test for support of --gc-sections to run a program which
reads a file using stdio built with --gc-sections, instead of simply
link the binary. This catches the buggy linker as the garbage
collection removes a tag NetBSD uses to distinguish its own elf
binaries from Linux ones, causing it to treat conftest as a Linux
binary and run it with the wrong syscall table.
|
|
b5a1f9f7
|
2011-03-23T16:22:24
|
|
Fix make distcheck & installation of libevent 1 headers
libevent/Makefile.am corrects a typo (thanks to Harlan for spotting it
once we realized make distcheck was broken when building the libevent
tearoff). The result was the include/ev*.h were not distributed nor
installed whether or not --disable-libevent-install was used. This
was introduced with the final round (3/3) of
--disable-libevent-install patch from me.
|
|
4ab2a89d
|
2011-03-12T12:12:35
|
|
Merge remote branch 'origin/patches-2.0'
|
|
4b8f02f1
|
2011-03-12T12:08:19
|
|
Fix incorrect assertions and possible use-after-free in evrpc_free()
Original description:
The following patch fixes incorrect assertions in evrpc_free():
evrpc_unregister_rpc() and evrpc_remove_hook() return 0 for success.
Also, in evrpc_unregister_rpc(), it is better to free RPC structure
at the end: evrpc_free() uses rpc->uri as "name" parameter when
calling evrpc_unregister_rpc(), then rpc->uri is freed, but we have
"registered_uri = evrpc_construct_uri(name)". So at this time "name"
is invalid.
|
|
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
|