Nick Mathewson
95060b54fe
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.
2011-02-13 00:41:22 -05:00
Nick Mathewson
f736198086
Fix a type error in our (unused) arc4random_stir()
2011-02-08 22:24:06 -05:00
Sebastian Hahn
f663112fa2
Fix warnings about AC_LANG_PROGRAM usage
...
Autoconf 2.68 introduced some new warnings that were triggered during
autogen.sh. Fix those.
2011-02-03 13:59:18 -05:00
Dave Hart
b4f89b608a
Fix test.sh output on solaris
...
Solaris echo -n doesn't omit newlines, but printf omits newlines in
more places.
2011-02-01 02:09:49 -05:00
Nick Mathewson
c1260b0e7c
Do not check for gethostbyname_r versions if we have getaddrinfo
2011-01-31 17:36:49 -05:00
Nick Mathewson
3c8f4e758e
Add compile-time check for AF_UNSPEC==PF_UNSPEC
2011-01-31 16:44:06 -05:00
Nick Mathewson
6092f1265f
Fix http unit test on non-windows platforms without getaddrinfo
2011-01-31 16:37:27 -05:00
Nick Mathewson
cb92113979
Build on systems without AI_PASSIVE
2011-01-31 16:32:05 -05:00
Nick Mathewson
713c254d21
Try to build correctly on platforms with no IPv6 support
2011-01-24 18:55:10 -05:00
Nick Mathewson
9184563e49
Build correctly on platforms without sockaddr_storage
2011-01-24 18:29:44 -05:00
Nick Mathewson
453317b28c
Fall back to sscanf if we have no other way to implement strtoll
2011-01-24 18:22:32 -05:00
Nick Mathewson
3267703658
Make --enable-gcc-warnings a no-op if not using gcc
2011-01-24 17:42:23 -05:00
Nick Mathewson
0c0ec0be2b
Correctly free selectop fields when select_resize fails in select_init
2011-01-12 20:28:47 -05:00
Nick Mathewson
83e805a415
Handle resize failures in the select backend better.
2011-01-07 13:18:09 -05:00
Jardel Weyrich
3f8d22a123
Use event_err() only if the failure is truly unrecoverable.
2011-01-07 13:03:32 -05:00
Jardel Weyrich
666b096691
Detect and handle more allocation failures.
2011-01-07 13:03:31 -05:00
Trond Norbye
0144886e7e
Check for POLLERR, POLLHUP and POLLNVAL for Solaris event ports
2011-01-06 12:43:53 -05:00
Nick Mathewson
cb8059d2d3
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.
2011-01-02 00:56:01 -05:00
Nick Mathewson
b42ce4bf08
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.
2011-01-01 21:17:31 -05:00
Nick Mathewson
05f0195dd9
Bump version to 2.0.10-stable-dev
2010-12-16 12:57:23 -05:00
Nick Mathewson
5a12d83597
Add changelog for 2.0.10-stable
release-2.0.10-stable
2010-12-16 12:32:35 -05:00
Nick Mathewson
d34d21d959
Add more acknowledgements to the readme for 2.0.10-stable
2010-12-15 14:30:04 -05:00
Nick Mathewson
bffc411ed6
Set the version to 2.0.10-stable
2010-12-15 14:29:50 -05:00
Evan Jones
b63ab1776b
EVUTIL_ASSERT: Use sizeof() to avoid "unused variable" warnings.
2010-12-14 00:14:07 -05:00
Nick Mathewson
18adc3f015
Add stuff to whatsnew based on reading include changes since August.
2010-12-09 12:17:58 -05:00
Nick Mathewson
57689c4484
Document that the cpu_hint is only used on Windows with IOCP for now
2010-12-09 12:17:11 -05:00
Nick Mathewson
bb0d2b4e85
Consistentize tabs
2010-12-09 11:47:54 -05:00
Nick Mathewson
22f4af6580
Remove end-of-line whitespace
2010-12-09 11:43:12 -05:00
Nick Mathewson
74f75758cb
tweak readme, whatsnew
2010-12-09 11:40:35 -05:00
Nick Mathewson
7011f9ec1f
Fix a signed/unsigned comparison in the last commit
2010-12-07 11:45:14 -05:00
Constantine Verutin
d23839fc6e
Reject overlong http requests early when Expect:100-continue is set
2010-12-07 11:43:52 -05:00
Evan Jones
c0bf63cecb
tests: Use relative includes ("") instead of system includes (<>)
2010-12-03 12:57:15 -05:00
Evan Jones
4f332091c3
tests: Use new event2 headers instead of old compatibility headers.
2010-12-03 12:57:15 -05:00
Evan Jones
fbe64f216c
Use relative includes instead of system includes consistently.
2010-12-02 11:03:55 -05:00
Evan Jones
ef5e65a484
bufferevent-internal.h: Use the new event2/util.h header, not evutil.h
2010-12-02 10:55:00 -05:00
Nick Mathewson
5beeec9d43
Correctly notify the main thread when activating an event from a subthread
2010-12-01 21:28:03 -05:00
Kelly Brock
2599b2d5f5
Minor fix for IOCP shutdown handling fix
...
Call setsockopt() on the actual new socket, not on as->s, which was
set to INVALID_SOCKET.
2010-11-30 11:34:26 -05:00
Nick Mathewson
2b0b06d7a3
Increment version to 2.0.9-rc-dev
2010-11-30 02:19:25 -05:00
Nick Mathewson
ce46db99b9
Give the correct date for 2.0.9-rc in the changelog
release-2.0.9-rc
2010-11-30 01:21:00 -05:00
Nick Mathewson
9ce4cc4ed9
Increment version to 2.0.9-rc
2010-11-30 01:20:04 -05:00
Nick Mathewson
79957b89d6
Bump VERSION_INFO to 5:0:0
2010-11-30 01:20:04 -05:00
Nick Mathewson
0c54f17605
Changelog and acknowledgments for 2.0.9-rc
2010-11-30 01:20:04 -05:00
Nick Mathewson
13fd242ddb
Fix win32 build of http-server.c with unicode enabled
2010-11-30 00:53:16 -05:00
Nick Mathewson
04861d5e62
Correctly detect timeouts during http connects
2010-11-30 00:05:54 -05:00
Nick Mathewson
0faaa39592
Try to fix an assertion failure related to close detection
...
f700566c removed a line from evhttp_connection_stop_detectclose that
cleared the EVHTTP_CON_CLOSEDETECT flag. I think this was an
accident, and suspect that it may be the cause of bug 3069555.
2010-11-29 22:44:18 -05:00
Nick Mathewson
29f7623c82
Possible crash fix when freeing an underlying bufferevent of an openssl bufferevent
2010-11-29 22:14:54 -05:00
Nick Mathewson
0c4d54598b
Merge remote branch 'chrisd/http_continue'
2010-11-29 21:56:23 -05:00
Christopher Davis
fa9305f8f5
Preliminary support for Continue expectation in evhttp.
2010-11-29 18:25:04 -08:00
Nick Mathewson
18d0327666
make http-server example code build on win32
2010-11-29 20:39:09 -05:00
Nick Mathewson
ad66dfd064
Fix http-server.c compilation on freebsd
2010-11-29 20:13:19 -05:00