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
Nick Mathewson
a12839b083
Merge remote branch 'chrisd/http_fixes2'
2010-11-29 14:25:33 -05:00
Christopher Davis
4feedef94b
Add a few more comments.
2010-11-29 07:18:32 -08:00
Nick Mathewson
026ac5d5ad
add http-server to gitignore
2010-11-26 13:29:56 -05:00
Nick Mathewson
4881778c5c
Fix a misplaced ) in http_server.c
2010-11-26 13:28:48 -05:00
Nick Mathewson
d40aa673c2
Merge branch '20_empty_body'
2010-11-26 12:59:02 -05:00
Nick Mathewson
4e794d5d39
Add a basic example of how to write a static HTTP server.
2010-11-26 12:58:22 -05:00
Christopher Davis
aab8c38b76
Add evhttp server alias interface, correct flagging of proxy requests.
...
evhttp needs to be mindful of all hostnames and addresses that clients
use to contact the main server and vhosts to know the difference between
proxy requests and non-proxy requests.
2010-11-26 03:58:28 -08:00
Nick Mathewson
2e5a175bf3
Merge remote branch 'github/20_once_fixes'
2010-11-25 23:03:46 -05:00
Kevin Bowling
32390732d7
Fix snprintf related failures on IRIX.
2010-11-23 22:24:52 -05:00
Kevin Bowling
1cd45e5660
If not WIN32, include <sys/socket.h> in event2/util.h.
2010-11-23 22:24:46 -05:00
Kevin Bowling
c2e5e22c4c
xlC doesn't obey C99 comments here. autoconf isn't invoking full C99
...
mode.
2010-11-23 22:24:23 -05:00
Kevin Bowling
c4dc335341
Add some checks since lack of TAILQ_FOREACH doesn't imply lack of FIRST,
...
END, NEXT, or INSERT_BEFORE. Quiet some warnings in XL C.
2010-11-23 22:23:31 -05:00
Kevin Bowling
2e2a3d7bb6
Reworked AIX __ss_family workaround to use AC_STRUCT_MEMBER.
2010-11-23 22:23:19 -05:00
Kevin Bowling
a3a9f6b2d9
select comes from <sys/select.h> according to POSIX.1-2001, or from a
...
variety of other standard headers on older systems, but not <select.h>.
AIX build fix.
2010-11-23 22:20:22 -05:00
Nick Mathewson
ec5c5aec6d
Handle evhttp PUT/POST requests with an empty body
...
When we call evhttp_get_bodylen() [when transfer-encoding isn't set],
having req->ntoread == -1 means that we have no content-length. But a
request with no content-length has no body! We were treating the
absent content-length as meaning "read till closed", which only holds
for replies, not requests.
This patch also allows PATCH requests to have a body.
2010-11-23 20:31:28 -05:00
Nick Mathewson
652024b6b1
Remove _event_initialized(); make event_initialized() a function(); make it consistent on windows and non-windows
2010-11-23 13:08:07 -05:00
Nick Mathewson
88be27dc06
Document event_get_assignment
2010-11-23 12:26:46 -05:00
Nick Mathewson
e431bcd686
Note that reentrant calls to libevent from logging cbs may fail badly
2010-11-23 12:26:34 -05:00
Nick Mathewson
7bcace2d54
Fix some irix compilation warnings spotted by Kevin Bowling
2010-11-22 21:02:34 -05:00
Nick Mathewson
150d7d0a49
Merge remote branch 'kev009/master'
2010-11-22 20:24:03 -05:00
Kevin Bowling
e87498231c
Fix IRIX build. sa_family collides with a #define in sys/socket.h on IRIX.
2010-11-22 16:40:31 -07:00
Nick Mathewson
26049c2f93
Merge remote branch 'github/20_getaddrinfo_cancel_v2'
2010-11-22 16:24:52 -05:00
Nick Mathewson
da1bf52811
Add a stress test for getaddrinfo_cancel
2010-11-22 16:24:09 -05:00
Nick Mathewson
568ac4fd1b
Merge remote branches 'github/20_epoll_nochangelist_v4', 'github/20_openssl_closeonfree' and 'github/20_cloexec'
2010-11-22 15:52:34 -05:00
Nick Mathewson
ece974fbba
Reorder backends in test.sh to match preference order in event.c
2010-11-22 15:51:45 -05:00
Nick Mathewson
aed7e02979
Make unit tests for epoll-with-changelist pass
...
The only changes needed were to handle the fact that the methodname
"epoll (with changelist)" matches the environment variable
EVENT_NOEPOLL rather than the imaginary "EVENT_EPOLL (WITH CHANGELIST)".
2010-11-22 15:51:45 -05:00
Nick Mathewson
9531763ab0
Disable changelist for epoll by default because of Linux dup() bug; add an option and/or an envvar to reenable it for speed.
...
Rename option to control epoll changelist; make epoll changelist off by default
2010-11-22 15:50:36 -05:00
Nick Mathewson
3ab578f848
Make sure the CLOEXEC flag is set on fds we open for base notification
2010-11-20 01:41:34 -05:00
Nick Mathewson
3a67d0bf42
Resolve an evport bug in the thread/forking test
2010-11-19 17:09:30 -05:00
Nick Mathewson
d51b2fc655
Make evdns_getaddrinfo_cancel threadsafe
2010-11-19 12:14:18 -05:00
Nick Mathewson
c7cfbcf466
Fix some more cancel-related bugs in getaddrinfo_async
...
Also imposed a new rule to make this much much simpler: no freeing
the getaddrinfo request until both dns callbacks have been invoked.
2010-11-19 12:08:35 -05:00
Nick Mathewson
abf01ed13a
Avoid double-invocation of user callback with EVUTIL_EAI_CANCEL
2010-11-19 12:08:34 -05:00
Nick Mathewson
494186129f
Use the US-English "canceled", not the UK "cancelled".
2010-11-19 12:08:29 -05:00
Nick Mathewson
8faf223ac5
Fix a memory leak in evhttp_uri_free.
2010-11-17 00:09:10 -05:00
Nick Mathewson
4f228a1fc1
Fix bug in bufferevent_connect on an openssl bufferevent that already had an fd
...
The problem was that we were using openssl's BIO code's shutdown flag
whenever BEV_OPT_CLOSE_ON_FREE was set. This made the BIO close the
socket when it was freed... but it would be freed whenever we did a
setfd on the bufferevent_openssl, even the no-op setfd in
bufferevent_connect.
So instead, we just set the shutdown flag to 0, and handle closing the
fd ourselves.
Spotted by Linus Nordberg
2010-11-14 19:54:52 -05:00