Patrick Pelletier
aacd674c94
use Debian's default root certificate location
...
as suggested here:
http://archives.seul.org/libevent/users/Feb-2013/msg00034.html
although curl's acinclude.m4 reveals many other possibilities:
dnl /etc/ssl/certs/ca-certificates.crt Debian systems
dnl /etc/pki/tls/certs/ca-bundle.crt Redhat and Mandriva
dnl /usr/share/ssl/certs/ca-bundle.crt old(er) Redhat
dnl /usr/local/share/certs/ca-root.crt FreeBSD
dnl /etc/ssl/cert.pem OpenBSD
dnl /etc/ssl/certs/ (ca path) SUSE
And none of these cover Windows :(
2013-02-27 21:22:03 -08:00
Patrick Pelletier
5754d96a6e
better handling of OpenSSL errors
2013-02-27 21:22:03 -08:00
Patrick Pelletier
42d7441ac4
https-client was putting newlines at 256-byte boundaries
...
presumably this was meant to put a ">" before every line, but that
isn't what it does, since evbuffer_remove is simply returning
fixed-size chunks. So, when retrieving a document of more than 256
bytes (e. g. any nontrivial document), we got "> " and newlines thrown
in at very arbitrary places.
2013-02-27 21:22:03 -08:00
Patrick Pelletier
bf31fa5d30
use ${OPENSSL_LIBS} instead of -lssl -lcrypto
...
This made the difference between segfaulting and not segfaulting for
me when I run https-client, when I've built libevent using an OpenSSL
in a non-standard location.
In the same spirit as 1d9d5110a4aebf5833f6fd78bd0252affde0f4d0 and
d70af27d0152d0a87a25127faf215604beb8ffe0.
2013-02-27 21:22:03 -08:00
Catalin Patulea
be46c99b89
Add sample/https-client.c, an example of stacking evhttp as a client on top of bufferevent_ssl.
...
Signed-off-by: Catalin Patulea <catalinp@google.com>
2013-02-27 16:06:56 -08:00
Nick Mathewson
87c56727b6
Merge pull request #41 from ppelleti/winsock-errs
...
FormatMessage for winsock errors
2013-02-26 15:22:03 -08:00
Patrick Pelletier
c9ad3af229
test filling up the hash table a bit
2013-02-25 20:13:01 -08:00
Patrick Pelletier
4ccdd53f78
use hashtable instead of linked list to cache winsock errors
...
as discussed here:
https://github.com/libevent/libevent/pull/41#issuecomment-13611817
2013-02-25 19:02:32 -08:00
Patrick Pelletier
2078e9b46a
make sure caching works, and we don't leak memory
2013-02-14 20:26:38 -08:00
Patrick Pelletier
0c6ec5d816
use FormatMessage for winsock errors
...
as discussed here:
http://archives.seul.org/libevent/users/Feb-2013/msg00004.html
2013-02-14 20:26:38 -08:00
Patrick Pelletier
729651260d
a program to print out the error strings for winsock errors
2013-02-14 18:22:12 -08:00
Nick Mathewson
9709461457
Merge remote-tracking branch 'origin/patches-2.0'
2013-02-14 14:13:11 -05:00
Greg Hazel
b618204216
fix #73 and fix http_connection_fail_test to catch it
2013-02-14 09:54:56 -08:00
Nick Mathewson
96150dd0c6
Unit test for event_remove_timer with EV_PERSIST.
...
Patch from dcicppin on sourceforge.
2013-02-13 11:41:11 -05:00
Nick Mathewson
5623e80371
Make event_remove_timer behave correctly with persistent timers
2013-02-13 11:41:11 -05:00
Nick Mathewson
74e52db45d
Merge remote-tracking branch 'ppelleti/nmake-clean-exes'
2013-02-11 11:25:25 -05:00
Nick Mathewson
2863c83700
Avoid using $(top_srcdir) in TESTS.
...
Newer automakes don't like this.
2013-02-08 22:10:05 -05:00
Nick Mathewson
ebf278b28d
Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13 compat
...
Patch from cazfi.
2013-02-08 22:09:56 -05:00
Nick Mathewson
d670e3bd35
Merge remote-tracking branch 'origin/patches-2.0'
...
This is an "ours" commit: I'm not taking the recent autotools changes
from patches-2.0, since they'd conflict with master.
2013-02-08 22:09:00 -05:00
Nick Mathewson
a55514eeed
Avoid using top_srcdir in TESTS-new automakes do not like this
2013-02-08 22:08:18 -05:00
Nick Mathewson
0c79787a97
Rename configure.in to configure.ac to appease newer autoconfs
2013-02-08 22:07:47 -05:00
Nick Mathewson
817ea36924
Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13 compat
...
Patch from cazfi.
2013-02-08 13:03:29 -05:00
Patrick Pelletier
a452811e41
"buffer" spelling
2013-02-07 17:55:36 -08:00
Patrick Pelletier
974bfa0782
remove all exes on "make clean", not just regress.exe
2013-02-07 17:55:36 -08:00
Nick Mathewson
2901542714
Merge remote-tracking branch 'origin/patches-2.0'
2013-02-05 15:09:31 -05:00
Nick Mathewson
0a5eb2eb5c
Fix a locking error in bufferevent_socket_get_dns_error.
...
Patch from Ka-Hing Cheung.
2013-02-05 15:07:32 -05:00
Nick Mathewson
19583a5ffe
Merge pull request #30 from ppelleti/valgrind-epoll
...
avoid valgrind false positive by zeroing epoll_event
2013-02-04 13:50:58 -08:00
Nick Mathewson
2ecd894725
Merge pull request #39 from azat/fix-http-for-ipv6
...
Fix ipv6 support for http. When URL contain domain, not IP address.
2013-02-04 13:49:08 -08:00
Nick Mathewson
f0a68a25ca
Merge pull request #37 from ppelleti/fix-indentation
...
fix some hinky indentation in evhttp_make_request
2013-02-04 13:33:10 -08:00
Nicholas Heath
0dda56a48e
Preliminary changes for Minix3.
2013-02-04 13:21:05 -05:00
Azat Khuzhin
9ec88bdf5f
Add regress test ipv6_for_domain.
...
Written for commit 71e709c7829275a594f767b27468b1b52e8b5bb9.
Fix ipv6 support for http. When URL contain domain, not IP address.
2013-01-27 02:17:02 +04:00
Nick Mathewson
42aaf4dcf7
Implement EVUTIL_ERR_IS_EAGAIN on windows.
2013-01-23 16:55:09 +00:00
Azat Khuzhin
71e709c782
Fix ipv6 support for http. When URL contain domain, not IP address.
...
Before this patch socket created before domain was resolved, and it
always create with AF_INET (ipv4), but we must create socket only after
domain was resolved to understad which protocol family have domain
address.
Thank to Patrick Pelletier, who found this bug.
2013-01-23 02:45:32 +04:00
Nick Mathewson
f324b1dffc
Merge remote-tracking branch 'origin/patches-2.0'
2013-01-22 17:10:07 +00:00
Gyepi Sam
c322c2077e
Fix a mistake in evbuffer_remove() arguments in example http server code
...
(commit message by nickm)
2013-01-22 16:59:07 +00:00
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