1153 Commits

Author SHA1 Message Date
Nick Mathewson
2d9619d78f Make dns callbacks run deferred
svn:r1205
2009-04-19 01:59:09 +00:00
Nick Mathewson
327165b339 Add locks to evdns.
svn:r1204
2009-04-19 01:58:54 +00:00
Nick Mathewson
ac3fc9913a Use new-style headers in evdns.c
svn:r1203
2009-04-19 01:58:41 +00:00
Nick Mathewson
4d8919ec44 Do not try to double-free the nameserver in regression test
svn:r1202
2009-04-19 01:58:26 +00:00
Nick Mathewson
b182ed765e More tweaks to http stress-tester
svn:r1201
2009-04-18 18:28:18 +00:00
Nick Mathewson
a835c7cf18 fix a misindent
svn:r1200
2009-04-18 18:27:56 +00:00
Niels Provos
f00f0c2533 make doxygen happier
svn:r1199
2009-04-18 04:34:45 +00:00
Nick Mathewson
e4f24219ee Add a new bench_httpclient for a trivial codecon demo.
svn:r1198
2009-04-18 00:12:52 +00:00
Nick Mathewson
a98a512bc1 Add a generic way for any bufferevent to make its callback deferred
svn:r1197
2009-04-17 23:12:34 +00:00
Nick Mathewson
99de18670e Bump version to 2.0.1-alpha-dev so that nobody mistakes a svn checkout for 2.0.1-alpha.
svn:r1196
2009-04-17 23:07:48 +00:00
Nick Mathewson
d047b323bd Increment version to 2.0.1-alpha, and add a numeric version facility
svn:r1193
2009-04-17 17:22:32 +00:00
Nick Mathewson
b346038724 Even _more_ recent tinytest, designed to give better help output.
svn:r1192
release-2.0.1-alpha
2009-04-17 06:58:18 +00:00
Nick Mathewson
2c4c294ed8 note new unit test framework.
svn:r1191
2009-04-17 06:58:04 +00:00
Nick Mathewson
812800629b Add the latest tinytest. This one supports a --terse flag and a --no-fork flag, and outputs nicer.
svn:r1190
2009-04-17 06:57:52 +00:00
Nick Mathewson
91039e4d48 Add reference counts to bufferevents.
svn:r1189
2009-04-17 06:57:38 +00:00
Nick Mathewson
1351e61cf6 Write a huge pile of whatsnew-2.0.txt
svn:r1188
2009-04-17 06:57:25 +00:00
Nick Mathewson
4935413842 Oh hey. There is no support for suspend/unsuspend.
svn:r1187
2009-04-17 06:57:13 +00:00
Nick Mathewson
7fa8451d7e Add a configure flag to hardcode all of our mm functions.
svn:r1186
2009-04-17 06:56:57 +00:00
Nick Mathewson
64a37e61a1 Fix evmap indentation to be less stupid.
svn:r1185
2009-04-17 06:56:36 +00:00
Nick Mathewson
9097c95b6e Rename whatsnew file to reflect actual version.
svn:r1184
2009-04-17 06:56:23 +00:00
Nick Mathewson
a8f6d961eb Actually stop using EVBUFFER_LENGTH/DATA, and move them to buffer_compat.h
svn:r1183
2009-04-17 06:56:09 +00:00
Nick Mathewson
796ba15fc6 Stop claiming that APIs we have are missing.
svn:r1182
2009-04-17 06:55:25 +00:00
Nick Mathewson
838d0a81c3 Document many internal functions and pieces of code.
svn:r1181
2009-04-17 06:55:08 +00:00
Nick Mathewson
433e2339ca Remove long copy-and-paste section full of windows api notes.
svn:r1180
2009-04-17 06:54:28 +00:00
Niels Provos
30648529e8 have evhttp_set_cb return an int; -1 on failure, 0 on success; this is better than returning a pointer
svn:r1179
2009-04-17 01:03:07 +00:00
Niels Provos
edfc28caef pkgconfig support from Ted Bullock
svn:r1177
2009-04-17 00:24:58 +00:00
Nick Mathewson
0b98781353 More hacking on event_iocp.c: make it compile, and give it more of an interface. This code is now testable.
svn:r1176
2009-04-16 00:32:52 +00:00
Nick Mathewson
09c23b6a56 It seems support for GetCompletionEventEx is not in my mingw. Use the simpler interface instead, for now.
svn:r1175
2009-04-16 00:27:32 +00:00
Nick Mathewson
93d4f884aa Make buffer iocp stuff compile happily
svn:r1174
2009-04-14 20:11:10 +00:00
Nick Mathewson
fe95df15d3 Fix typo in mm_free
svn:r1173
2009-04-13 18:32:24 +00:00
Nick Mathewson
ca737ff3b5 Add draft (nonworking) versions of iocp code to hack on more.
svn:r1172
2009-04-13 18:29:31 +00:00
Nick Mathewson
4e8cdc6f08 Fix two windows compilation bugs.
svn:r1171
2009-04-13 18:23:02 +00:00
Nick Mathewson
915193e7df Locking support for bufferevents.
svn:r1170
2009-04-13 03:17:19 +00:00
Nick Mathewson
1becc4c4e6 Refactor new elements of bufferevent into bufferevent_private structure
This way we don't expose more of a bufferevent than we need to.  One
motivation is to make it easier to automatically get deferred callbacks
with a bufferevent without exposing the deferred_cb structure.

svn:r1169
2009-04-13 03:08:11 +00:00
Nick Mathewson
6567ecd4c5 Remove if0 code in bufferevent_struct.h
svn:r1168
2009-04-13 03:07:37 +00:00
Nick Mathewson
8dec59bb35 Use freeze operations to prevent shenanegans on bufferevent pair evbuffers.
svn:r1167
2009-04-13 03:07:17 +00:00
Nick Mathewson
0e32ba54dc Do not remove an empty chain that we have pinned for reading when we drain the whole buffer.
svn:r1166
2009-04-13 03:06:59 +00:00
Nick Mathewson
9f1a94ecec add pin/unpin functions, and a deref-and-free pair.
svn:r1165
2009-04-13 03:06:47 +00:00
Nick Mathewson
dcda7915ac Add a reference count to evbuffers.
svn:r1164
2009-04-13 03:06:27 +00:00
Nick Mathewson
b01891fe1d Make evbuffer_commit_space trigger callbacks.
svn:r1163
2009-04-13 03:06:05 +00:00
Nick Mathewson
829b52b6c1 Refactor the code that sets up iovecs for reading into its own function. iocp needs this.
svn:r1162
2009-04-13 03:05:46 +00:00
Nick Mathewson
0b47b125cf Add a new EVUTIL_UPCAST macro so that I do not need to keep figuring out the right offsetof magic over and over.
svn:r1160
2009-04-12 22:02:54 +00:00
Nick Mathewson
bbd6a332e1 reindent macros in util-internal.h
svn:r1159
2009-04-12 22:02:12 +00:00
Niels Provos
d475fb5861 http benchmark: add a way to change the size of the buffer; also use add_reference
svn:r1158
2009-04-12 00:38:31 +00:00
Niels Provos
d2794e65e0 document evhttp_parse_query better
svn:r1157
2009-04-11 15:26:29 +00:00
Niels Provos
382a1587a0 previous commit changed the semantics of evhttp_decode_uri; need a test for that
svn:r1156
2009-04-11 04:18:49 +00:00
Nick Mathewson
b29b875d84 Facility to make evbuffers get their callbacks deferred.
svn:r1154
2009-04-10 20:43:08 +00:00
Nick Mathewson
decdacfaf8 Better explanation for bufferevent_pair
svn:r1153
2009-04-10 20:42:53 +00:00
Nick Mathewson
23085c9247 Add a linked-pair abstraction to bufferevents.
The new bufferevent_pair abstraction works like a set of buferevent_sockets
connected by a socketpair, except that it doesn't require a socketpair,
and therefore doesn't need to get the kernel involved.

It's also a good way to make sure that deferred callbacks work.  It's a good
use case for deferred callbacks: before I implemented them, the recursive
relationship between the evbuffer callback and the read callback would
make the unit tests overflow the stack.

svn:r1152
2009-04-10 15:01:31 +00:00
Nick Mathewson
8161662007 A couple of tweaks for deferred callbacks.
svn:r1151
2009-04-10 14:58:15 +00:00