2124 Commits

Author SHA1 Message Date
Nick Mathewson
3f405d2d4b Add CreateFileMapping file_segment implementation for win32 2010-12-20 19:25:15 -05:00
Nick Mathewson
c2d9884a6a Add support for mmaps with nonzero offset values. Needs testing. 2010-12-20 19:25:15 -05:00
Nick Mathewson
e72afae068 Add evbuffer_add_file_segment() so one fd can be used efficiently in more than one evbuffer_add_file at a time 2010-12-20 19:25:05 -05:00
Nick Mathewson
076680abe4 Merge branch 'epoll_table_v2' 2010-12-16 14:37:15 -05:00
Nick Mathewson
d4970d4edd Reindent epoll_apply_one_change() 2010-12-16 14:37:05 -05:00
Nick Mathewson
2d55a190e1 Clean up error handling in epoll_apply_one_change() a little
The old code was more or less:
   if (op == X && errno == FOO) {
     ...
   } else if (op == Y && errno == BAR) {
     ...
   }
but really we wanted to do a switch (op) to avoid needless checks
and branches.

This patch leaves the indentation a little weird so as to make it
easier to see what changed; the next patch will fix the indentation.
2010-12-16 14:34:14 -05:00
Nick Mathewson
8c83eb6948 Replace big chain of if/thens in epoll.c with a table lookup
This should save a bunch of branches by doing instead a lookup in a
nice static table.

To ensure correctness, the table is generated from a Python script,
included with this commit.
2010-12-16 14:17:49 -05:00
Nick Mathewson
b8b8aa560c Use GetSystemTimeAsFileTime to implement gettimeofday on win32.
It is (in my benchmarks) way faster than _ftime, though the
conversion process is not so straightforward.  In theory, it can
have a better granularity too, though in practice who knows what
you're getting.
2010-12-16 13:26:01 -05:00
Mike Smellie
04ba27ebf2 Use current event set rather than current pending change when deciding whether to no-op a del
This alters event_changelist_del to quash deletion of events that
didn't exist in the first place.

As far as I can see, the add,delete, dispatch case described in the
original comment will never happen.  The recorded change is a single
operation, not a queue.  This seems to leave actions to delete
events that never existed as the real targets for no-oping
2010-12-16 13:21:25 -05:00
Nick Mathewson
2570ae50d3 Bump version in master to 2.1.0-alpha-dev 2010-12-16 12:59:22 -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
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