Patrick Pelletier
80e220eef7
fix some hinky indentation in evhttp_make_request
2013-01-18 20:25:41 -08:00
Volker Lendecke
0c2bacca43
Fix typo : Dispatching instead of Dispaching
2013-01-17 10:22:33 -05:00
Greg Hazel
865a14261c
event_base_active_by_fd
2013-01-16 16:31:08 -08:00
Kevin Bowling
74d4c44cf2
Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5)
...
This is a backport of ad03952.
2013-01-16 01:22:05 +08:00
Tay Ray Chuan
9ab2b3f749
Fix missing AC_PROG_SED on older Autoconfs
...
For pre-2.59b Autoconfs, AC_PROG_SED is not available [1]; on such
systems, avoid calling AC_PROG_SED, while providing a sensible SED.
This aids backporting to Autoconf 2.59.
[1] http://lists.gnu.org/archive/html/autotools-announce/2004-08/msg00002.html
2013-01-16 00:47:02 +08:00
Nick Mathewson
bf7a0ff268
When EWOULDBLOCK is not EAGAIN, treat it as equivalent to it
...
Acording to http://stackoverflow.com/questions/7003234/which-systems-define-eagain-and-ewouldblock-as-different-values
there are some older unixes that distinguish these error.s
2013-01-11 16:37:34 -08:00
Sebastian Hahn
b452a43450
Fix harmless clang enum warning
2012-12-31 18:29:56 +01:00
Sebastian Hahn
9e8cdf3d65
Fix comment to refer to sample/include.am correctly
2012-12-23 18:41:00 +01:00
Nick Mathewson
21c962e087
Merge remote-tracking branch 'origin/patches-2.0'
2012-12-20 11:50:23 -05:00
Nick Mathewson
0a822a640e
Avoid double-close on getsockname error in evutil_ersatz_socketpair
...
Found by coverity; CID 739726
2012-12-20 11:48:05 -05:00
Nick Mathewson
69db2610be
Avoid leaking fds on evconnlistener with no callback set
...
There's no way to retrieve an fd from an evconnlistener whose
callback has been cleared, so we had better close any such fd.
Found by coverity; CID 739725.
2012-12-20 11:47:09 -05:00
Nick Mathewson
49905ac328
Fix cut-and-paste err in whatsnew-2.1
2012-12-11 12:53:09 -05:00
Patrick Pelletier
809586a9c3
minor documentation typos
2012-12-08 02:32:17 -08:00
Nick Mathewson
5cc7806cc4
Merge remote-tracking branch 'origin/patches-2.0'
2012-12-04 12:32:26 -05:00
Nick Mathewson
7e45739e26
Fix compilation with WIN32_HAVE_CONDITION_VARIABLES enabled
...
Reported by Xiuqiang Jiang
2012-12-04 12:01:58 -05:00
Nick Mathewson
f5b3ff20d3
Merge remote-tracking branch 'origin/patches-2.0'
2012-11-19 10:58:04 -05:00
Nick Mathewson
f7d92c6392
Increment version to 2.0.21-stable-dev
2012-11-19 10:56:16 -05:00
Nick Mathewson
40b95ae26d
Increment version to 2.1.2-alpha-dev
2012-11-19 10:53:25 -05:00
Nick Mathewson
c142069098
Fix a bug when running "make verify" out-of-tree
release-2.1.2-alpha
2012-11-19 09:07:13 -05:00
Nick Mathewson
dc0287c473
Clean up and clarify a little more documentation
2012-11-18 19:32:41 -05:00
Nick Mathewson
060c409e8b
Make the argument to bufferevent_get_priority const
2012-11-18 19:32:11 -05:00
Nick Mathewson
96584866cd
Avoid defining recommended functions in terms of deprecated ones
2012-11-18 18:59:19 -05:00
Nick Mathewson
3db0737ae6
Update "what's new in Libevent 2.1"
2012-11-18 11:25:13 -05:00
Nick Mathewson
ffdad1dcbc
Bump versions to 2.1.2-alpha
2012-11-18 10:53:52 -05:00
Nick Mathewson
143cb613bd
Update changelog for 2.1.2-alpha
2012-11-18 10:53:26 -05:00
Nick Mathewson
5af4caa9ee
Update ChangeLog-2.0
2012-11-18 02:01:26 -05:00
Nick Mathewson
15f989ad33
Merge remote-tracking branch 'origin/patches-2.0'
2012-11-18 01:44:09 -05:00
Nick Mathewson
173d782345
Fix a gcc warning in rtrim test
2012-11-18 01:40:33 -05:00
Nick Mathewson
f2703b2e34
Fix a warning when building without threading.
2012-11-18 01:40:13 -05:00
Nick Mathewson
6417777716
Increment libtool version for 2.0.21 too
release-2.0.21-stable
2012-11-18 01:39:10 -05:00
Nick Mathewson
0ee10fdfee
Increment version to 2.0.21-stable
2012-11-18 01:38:07 -05:00
Nick Mathewson
1c5517c97c
Changelog for 2.0.21-stable
2012-11-18 01:36:33 -05:00
Nick Mathewson
f38e078868
Make ssl version check in unit tests work
2012-11-18 01:36:03 -05:00
Patrick Pelletier
1258614f2c
avoid valgrind false positive by zeroing epoll_event
2012-11-16 21:38:04 -08:00
Nick Mathewson
9dee36bc8b
Make bufferevent_set_timeouts(bev, NULL, NULL) have plausible semantics
2012-11-16 18:34:43 -05:00
Nick Mathewson
e3b2e0869e
Add an event_remove_timer() to remove timer on an event without deleting it
2012-11-16 16:43:17 -05:00
Nick Mathewson
5a9a014189
Fix a couple of compile warnings in the unit tests
2012-11-16 16:17:07 -05:00
Nick Mathewson
1fda492878
Merge remote-tracking branch 'origin/patches-2.0'
2012-11-16 12:06:40 -05:00
Nick Mathewson
e3cccf380c
Avoid crash when event_pending() called with no event_base set on event
...
Instead, give a warning and return 0.
Reported by Antony Dovgal on github as
https://github.com/libevent/libevent/issues/19
2012-11-16 11:56:56 -05:00
Nick Mathewson
7afbd60266
Use EVUTIL_SOCKET_ERROR() wrapper to save/restor errno in evhttp_connection_fail_
2012-11-16 11:51:42 -05:00
Nick Mathewson
29fea33a7c
Merge remote-tracking branch 'ppelleti/preserve-errno'
2012-11-16 11:49:46 -05:00
Jay R. Wren
4f4d0c9318
add evhttp_request_get_response_code_line
...
This is needed to be able to read the response code line especially
when acting as an http client using evhttp_make_request.
(patched by nickm to make the return value const)
2012-11-16 11:48:03 -05:00
Nick Mathewson
61b93af561
Move evutil_rtrim_lws_ to evutil.c where it belongs
2012-11-16 11:41:59 -05:00
Nick Mathewson
c6ff381270
Remove internal ws from multiline http headers correctly
...
According to RFC2616:
All linear white space, including folding, has the same semantics
as SP. A recipient MAY replace any linear white space with a single
SP before interpreting the field value or forwarding the message
downstream.
2012-11-16 11:38:53 -05:00
Nick Mathewson
ac42519769
Remove trailing tabs in HTTP headers as well.
2012-11-16 11:29:34 -05:00
Nick Mathewson
aa59d805f5
Clean up rtrim implementation
...
If I understand the C standard correctly, you can't actually point
at a position immediately _before_ the start of an object; only at the
position immediately after.
According to J.2 in the standard, in its big list of undefined behavior:
"The behavior is undefined in the following circumstances:
...
— Addition or subtraction of a pointer into, or just beyond, an
array object and an integer type produces a result that does not
point into, or just beyond, the same array object (6.5.6)."
So we've got to fix rtrim to not do that. Also, make it unit tested,
and give it an evutil_*_ name.
2012-11-16 11:13:29 -05:00
Artem Germanov
370a2c0213
ignore LWS after field-content in headers
2012-11-16 10:59:43 -05:00
Nick Mathewson
c181399e92
Merge remote-tracking branch 'azat/fix-typo-evets'
2012-11-16 10:53:52 -05:00
Nick Mathewson
30512f4376
Merge remote-tracking branch 'ppelleti/tiny-doc-typos'
2012-11-16 10:51:26 -05:00
Nick Mathewson
d70af27d01
Use correct openssl libs and includes in pkgconfig file
...
Previously we were saying -lssl -lcrypto unconditionally when
we should have been saying OPENSSL_LIBS.
Based on a patch from Patrick Pelletier
2012-11-16 10:50:04 -05:00