]>
granicus.if.org Git - libevent/log
Nick Mathewson [Thu, 23 Apr 2009 00:01:05 +0000 (00:01 +0000)]
bump the numeric version; this is not the same as the alpha.
svn:r1224
Nick Mathewson [Thu, 23 Apr 2009 00:00:55 +0000 (00:00 +0000)]
Somehow free_active_base was using the socketpair, but not saying it needed it. How did this ever work?
svn:r1223
Nick Mathewson [Wed, 22 Apr 2009 20:28:30 +0000 (20:28 +0000)]
Detect and reject n_priorities less than 1.
svn:r1222
Nick Mathewson [Wed, 22 Apr 2009 20:27:21 +0000 (20:27 +0000)]
Add forgotten changelog.
svn:r1221
Nick Mathewson [Wed, 22 Apr 2009 19:41:23 +0000 (19:41 +0000)]
Add a flag to disable checking the EVENT_* environment variables.
svn:r1220
Nick Mathewson [Wed, 22 Apr 2009 15:38:50 +0000 (15:38 +0000)]
Add a missing "static".
svn:r1219
Nick Mathewson [Tue, 21 Apr 2009 18:48:05 +0000 (18:48 +0000)]
Make sure the test case for mem_functions hits strdup too.
svn:r1218
Nick Mathewson [Tue, 21 Apr 2009 18:47:53 +0000 (18:47 +0000)]
Do not free the signal index unless it was at some point allocated
svn:r1217
Nick Mathewson [Tue, 21 Apr 2009 18:47:35 +0000 (18:47 +0000)]
Add a basic test for set_mem_functions
svn:r1216
Nick Mathewson [Tue, 21 Apr 2009 18:47:23 +0000 (18:47 +0000)]
Fix the documentation of event_pending.
svn:r1215
Nick Mathewson [Tue, 21 Apr 2009 18:47:02 +0000 (18:47 +0000)]
Add a test for event_pending; especially the timeout part.
svn:r1214
Nick Mathewson [Tue, 21 Apr 2009 18:46:43 +0000 (18:46 +0000)]
Unit tests for event_base_once.
svn:r1213
Nick Mathewson [Tue, 21 Apr 2009 18:46:30 +0000 (18:46 +0000)]
Refactor test wrappers to divide legacy items from useful stuff.
svn:r1212
Nick Mathewson [Tue, 21 Apr 2009 18:46:11 +0000 (18:46 +0000)]
Add unit tests for version methods and feature-based backend selection
svn:r1211
Nick Mathewson [Tue, 21 Apr 2009 18:45:59 +0000 (18:45 +0000)]
Call the main testcases "main", not "legacy".
svn:r1210
Nick Mathewson [Tue, 21 Apr 2009 16:17:59 +0000 (16:17 +0000)]
Format microseconds correctly in bench_httpclient
svn:r1209
Nick Mathewson [Sun, 19 Apr 2009 20:54:12 +0000 (20:54 +0000)]
Update copyright notices, add some missing license statements
svn:r1208
Niels Provos [Sun, 19 Apr 2009 13:33:52 +0000 (13:33 +0000)]
defer-internal.h was missing from dist; so our first tar ball did not even compile. ouch.
svn:r1207
Nick Mathewson [Sun, 19 Apr 2009 01:59:25 +0000 (01:59 +0000)]
Note dns work in changelog and whatsnew
svn:r1206
Nick Mathewson [Sun, 19 Apr 2009 01:59:09 +0000 (01:59 +0000)]
Make dns callbacks run deferred
svn:r1205
Nick Mathewson [Sun, 19 Apr 2009 01:58:54 +0000 (01:58 +0000)]
Add locks to evdns.
svn:r1204
Nick Mathewson [Sun, 19 Apr 2009 01:58:41 +0000 (01:58 +0000)]
Use new-style headers in evdns.c
svn:r1203
Nick Mathewson [Sun, 19 Apr 2009 01:58:26 +0000 (01:58 +0000)]
Do not try to double-free the nameserver in regression test
svn:r1202
Nick Mathewson [Sat, 18 Apr 2009 18:28:18 +0000 (18:28 +0000)]
More tweaks to http stress-tester
svn:r1201
Nick Mathewson [Sat, 18 Apr 2009 18:27:56 +0000 (18:27 +0000)]
fix a misindent
svn:r1200
Niels Provos [Sat, 18 Apr 2009 04:34:45 +0000 (04:34 +0000)]
make doxygen happier
svn:r1199
Nick Mathewson [Sat, 18 Apr 2009 00:12:52 +0000 (00:12 +0000)]
Add a new bench_httpclient for a trivial codecon demo.
svn:r1198
Nick Mathewson [Fri, 17 Apr 2009 23:12:34 +0000 (23:12 +0000)]
Add a generic way for any bufferevent to make its callback deferred
svn:r1197
Nick Mathewson [Fri, 17 Apr 2009 23:07:48 +0000 (23:07 +0000)]
Bump version to 2.0.1-alpha-dev so that nobody mistakes a svn checkout for 2.0.1-alpha.
svn:r1196
Nick Mathewson [Fri, 17 Apr 2009 17:22:32 +0000 (17:22 +0000)]
Increment version to 2.0.1-alpha, and add a numeric version facility
svn:r1193
Nick Mathewson [Fri, 17 Apr 2009 06:58:18 +0000 (06:58 +0000)]
Even _more_ recent tinytest, designed to give better help output.
svn:r1192
Nick Mathewson [Fri, 17 Apr 2009 06:58:04 +0000 (06:58 +0000)]
note new unit test framework.
svn:r1191
Nick Mathewson [Fri, 17 Apr 2009 06:57:52 +0000 (06:57 +0000)]
Add the latest tinytest. This one supports a --terse flag and a --no-fork flag, and outputs nicer.
svn:r1190
Nick Mathewson [Fri, 17 Apr 2009 06:57:38 +0000 (06:57 +0000)]
Add reference counts to bufferevents.
svn:r1189
Nick Mathewson [Fri, 17 Apr 2009 06:57:25 +0000 (06:57 +0000)]
Write a huge pile of whatsnew-2.0.txt
svn:r1188
Nick Mathewson [Fri, 17 Apr 2009 06:57:13 +0000 (06:57 +0000)]
Oh hey. There is no support for suspend/unsuspend.
svn:r1187
Nick Mathewson [Fri, 17 Apr 2009 06:56:57 +0000 (06:56 +0000)]
Add a configure flag to hardcode all of our mm functions.
svn:r1186
Nick Mathewson [Fri, 17 Apr 2009 06:56:36 +0000 (06:56 +0000)]
Fix evmap indentation to be less stupid.
svn:r1185
Nick Mathewson [Fri, 17 Apr 2009 06:56:23 +0000 (06:56 +0000)]
Rename whatsnew file to reflect actual version.
svn:r1184
Nick Mathewson [Fri, 17 Apr 2009 06:56:09 +0000 (06:56 +0000)]
Actually stop using EVBUFFER_LENGTH/DATA, and move them to buffer_compat.h
svn:r1183
Nick Mathewson [Fri, 17 Apr 2009 06:55:25 +0000 (06:55 +0000)]
Stop claiming that APIs we have are missing.
svn:r1182
Nick Mathewson [Fri, 17 Apr 2009 06:55:08 +0000 (06:55 +0000)]
Document many internal functions and pieces of code.
svn:r1181
Nick Mathewson [Fri, 17 Apr 2009 06:54:28 +0000 (06:54 +0000)]
Remove long copy-and-paste section full of windows api notes.
svn:r1180
Niels Provos [Fri, 17 Apr 2009 01:03:07 +0000 (01:03 +0000)]
have evhttp_set_cb return an int; -1 on failure, 0 on success; this is better than returning a pointer
svn:r1179
Niels Provos [Fri, 17 Apr 2009 00:24:58 +0000 (00:24 +0000)]
pkgconfig support from Ted Bullock
svn:r1177
Nick Mathewson [Thu, 16 Apr 2009 00:32:52 +0000 (00:32 +0000)]
More hacking on event_iocp.c: make it compile, and give it more of an interface. This code is now testable.
svn:r1176
Nick Mathewson [Thu, 16 Apr 2009 00:27:32 +0000 (00:27 +0000)]
It seems support for GetCompletionEventEx is not in my mingw. Use the simpler interface instead, for now.
svn:r1175
Nick Mathewson [Tue, 14 Apr 2009 20:11:10 +0000 (20:11 +0000)]
Make buffer iocp stuff compile happily
svn:r1174
Nick Mathewson [Mon, 13 Apr 2009 18:32:24 +0000 (18:32 +0000)]
Fix typo in mm_free
svn:r1173
Nick Mathewson [Mon, 13 Apr 2009 18:29:31 +0000 (18:29 +0000)]
Add draft (nonworking) versions of iocp code to hack on more.
svn:r1172
Nick Mathewson [Mon, 13 Apr 2009 18:23:02 +0000 (18:23 +0000)]
Fix two windows compilation bugs.
svn:r1171
Nick Mathewson [Mon, 13 Apr 2009 03:17:19 +0000 (03:17 +0000)]
Locking support for bufferevents.
svn:r1170
Nick Mathewson [Mon, 13 Apr 2009 03:08:11 +0000 (03:08 +0000)]
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
Nick Mathewson [Mon, 13 Apr 2009 03:07:37 +0000 (03:07 +0000)]
Remove if0 code in bufferevent_struct.h
svn:r1168
Nick Mathewson [Mon, 13 Apr 2009 03:07:17 +0000 (03:07 +0000)]
Use freeze operations to prevent shenanegans on bufferevent pair evbuffers.
svn:r1167
Nick Mathewson [Mon, 13 Apr 2009 03:06:59 +0000 (03:06 +0000)]
Do not remove an empty chain that we have pinned for reading when we drain the whole buffer.
svn:r1166
Nick Mathewson [Mon, 13 Apr 2009 03:06:47 +0000 (03:06 +0000)]
add pin/unpin functions, and a deref-and-free pair.
svn:r1165
Nick Mathewson [Mon, 13 Apr 2009 03:06:27 +0000 (03:06 +0000)]
Add a reference count to evbuffers.
svn:r1164
Nick Mathewson [Mon, 13 Apr 2009 03:06:05 +0000 (03:06 +0000)]
Make evbuffer_commit_space trigger callbacks.
svn:r1163
Nick Mathewson [Mon, 13 Apr 2009 03:05:46 +0000 (03:05 +0000)]
Refactor the code that sets up iovecs for reading into its own function. iocp needs this.
svn:r1162
Nick Mathewson [Sun, 12 Apr 2009 22:02:54 +0000 (22:02 +0000)]
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
Nick Mathewson [Sun, 12 Apr 2009 22:02:12 +0000 (22:02 +0000)]
reindent macros in util-internal.h
svn:r1159
Niels Provos [Sun, 12 Apr 2009 00:38:31 +0000 (00:38 +0000)]
http benchmark: add a way to change the size of the buffer; also use add_reference
svn:r1158
Niels Provos [Sat, 11 Apr 2009 15:26:29 +0000 (15:26 +0000)]
document evhttp_parse_query better
svn:r1157
Niels Provos [Sat, 11 Apr 2009 04:18:49 +0000 (04:18 +0000)]
previous commit changed the semantics of evhttp_decode_uri; need a test for that
svn:r1156
Nick Mathewson [Fri, 10 Apr 2009 20:43:08 +0000 (20:43 +0000)]
Facility to make evbuffers get their callbacks deferred.
svn:r1154
Nick Mathewson [Fri, 10 Apr 2009 20:42:53 +0000 (20:42 +0000)]
Better explanation for bufferevent_pair
svn:r1153
Nick Mathewson [Fri, 10 Apr 2009 15:01:31 +0000 (15:01 +0000)]
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
Nick Mathewson [Fri, 10 Apr 2009 14:58:15 +0000 (14:58 +0000)]
A couple of tweaks for deferred callbacks.
svn:r1151
Nick Mathewson [Fri, 10 Apr 2009 14:22:33 +0000 (14:22 +0000)]
Initial support for a lightweight 'deferred callbacks'.
A 'deferred callback' is just a function that we've queued in the
event base. This ability is needed for some mt stuff, and for complex
callback chains. For internal use only.
svn:r1150
Nick Mathewson [Fri, 10 Apr 2009 14:21:53 +0000 (14:21 +0000)]
Don't allow internal events to starve lower-priority events.
This is exceptionally important with multithreaded stuff, where we use
an event to notify the base that other events have been made active.
If the activated events have a prioirty number greater than that of the
notification event, it will starve them, and that's no good.
svn:r1149
Niels Provos [Fri, 10 Apr 2009 05:43:45 +0000 (05:43 +0000)]
Fix parsing of queries where the encoded queries contained \r, \n or +
svn:r1148
Niels Provos [Fri, 10 Apr 2009 05:22:15 +0000 (05:22 +0000)]
revert last commit; git user error
svn:r1147
Niels Provos [Fri, 10 Apr 2009 05:18:18 +0000 (05:18 +0000)]
initial version of query decoding patch
svn:r1146
Nick Mathewson [Wed, 8 Apr 2009 16:57:38 +0000 (16:57 +0000)]
add a missing "static" to timeout_process.
svn:r1145
Nick Mathewson [Wed, 8 Apr 2009 03:05:42 +0000 (03:05 +0000)]
Prevent unsupported modifications to bufferevent_sock buffers.
In particular, we don't allow adding any data to end front of inbuf
(we do that when we read), or removing it from the front of outbuf (we
drain data only when we write).
svn:r1144
Nick Mathewson [Wed, 8 Apr 2009 03:04:39 +0000 (03:04 +0000)]
Add freeze support to evbuffers.
From the documentation:
Prevent calls that modify an evbuffer from succeeding. A buffer may
frozen at the front, at the back, or at both the front and the back.
If the front of a buffer is frozen, operations that drain data from
the front of the buffer, or that prepend data to the buffer, will
fail until it is unfrozen. If the back a buffer is frozen, operations
that append data from the buffer will fail until it is unfrozen.
We'll use this to ensure correctness on an evbuffer when we're waiting
for an overlapped IO call to finish.
svn:r1143
Nick Mathewson [Wed, 8 Apr 2009 03:03:59 +0000 (03:03 +0000)]
Add a new facility to "pin" the memory in an evbuffer chain.
For overlapped IO (and possibly other stuff) we need to be able to
label an evbuffer_chain as "pinned", meaning that every byte in it
must remain at the same address as it is now until it unpinned. This
differs from being "immutable": it is okay to add data to the end
of a pinned chain, so long as existing data is not moved.
svn:r1142
Nick Mathewson [Tue, 7 Apr 2009 04:49:25 +0000 (04:49 +0000)]
Refactor the zlib and pthreads tests to appear in the regular tinytest tree structure.
svn:r1141
Nick Mathewson [Mon, 6 Apr 2009 20:38:42 +0000 (20:38 +0000)]
Avoid a double event_del() in evdns.c.
The bug could occur when a nameserver was marked as up, but then an
outstanding probe sent to the nameserver failed. Now, evdns_up() cancels
any outstanding probe.
svn:r1140
Nick Mathewson [Mon, 6 Apr 2009 20:38:19 +0000 (20:38 +0000)]
Fix evdns_cancel to alert callback and free associated RAM.
Also, we add a test to make sure evdns_cancel is working properly.
svn:r1139
Nick Mathewson [Sun, 5 Apr 2009 17:50:18 +0000 (17:50 +0000)]
Fix a double-delete on the request timeout event. Port from Tor.
svn:r1138
Nick Mathewson [Sun, 5 Apr 2009 04:26:46 +0000 (04:26 +0000)]
Finally, get unit tests to pass with threading turned off again.
svn:r1137
Nick Mathewson [Sun, 5 Apr 2009 04:15:01 +0000 (04:15 +0000)]
Munge the read_suspended flag before re-enabling reads on the underlying bufferevent. This makes it so the enabled thing has some idea whether reads are supposed to be suspended or not.
svn:r1136
Nick Mathewson [Sun, 5 Apr 2009 04:10:05 +0000 (04:10 +0000)]
Actually, move EVUTIL_NIL_STMT to util-internal.h
svn:r1135
Nick Mathewson [Sun, 5 Apr 2009 02:44:17 +0000 (02:44 +0000)]
Add locking to evbuffers.
svn:r1134
Nick Mathewson [Sun, 5 Apr 2009 02:44:04 +0000 (02:44 +0000)]
Fix build with thread support disabled, and make no-op macros a little more no-oppy.
svn:r1133
Nick Mathewson [Sun, 5 Apr 2009 02:43:55 +0000 (02:43 +0000)]
Add some more utility macros to evthread-internal.h
svn:r1132
Nick Mathewson [Fri, 3 Apr 2009 14:27:03 +0000 (14:27 +0000)]
Make the new evbuffer callbacks use a new struct-based interface.
The old interface would fail pretty hard when we had to batch up
multiple adds and drains in a single call.
svn:r1131
Nick Mathewson [Fri, 3 Apr 2009 01:21:36 +0000 (01:21 +0000)]
Add a new improved search function.
The old evbuffer_find didn't allow iterative searching, and forced us
to repack the buffer completely every time we searched in it. The
new evbuffer_search addresses both of these. As a side-effect, the
evbuffer_find implementation is now a little more efficient.
svn:r1130
Nick Mathewson [Wed, 1 Apr 2009 16:08:34 +0000 (16:08 +0000)]
Glibc mkstemp requires exactly 6 Xs.
svn:r1129
Niels Provos [Mon, 30 Mar 2009 17:36:22 +0000 (17:36 +0000)]
correct evbuffer_drain documentation from John Khvatov
svn:r1127
Niels Provos [Thu, 12 Mar 2009 17:43:43 +0000 (17:43 +0000)]
include Doxyfile in tar ball; from Jeff Garzik
svn:r1125
Nick Mathewson [Fri, 13 Feb 2009 13:43:35 +0000 (13:43 +0000)]
Make tmpfile code compile without warnings
svn:r1123
Niels Provos [Fri, 13 Feb 2009 01:42:59 +0000 (01:42 +0000)]
a simple test for evbuffer_add_file
svn:r1122
Nick Mathewson [Thu, 12 Feb 2009 22:19:54 +0000 (22:19 +0000)]
Make threading functions global, like the mm_ functions. Use the libevent_pthread.la library in regress_pthread.
svn:r1121
Nick Mathewson [Wed, 11 Feb 2009 17:29:17 +0000 (17:29 +0000)]
Fix some of the crazier indentation and tabbing choices in evdns.c
svn:r1120
Nick Mathewson [Wed, 11 Feb 2009 17:24:11 +0000 (17:24 +0000)]
New bind-to option to allow DNS clients to bind to arbitrary ports for their outgoing addresses.
svn:r1119
Nick Mathewson [Wed, 11 Feb 2009 17:23:32 +0000 (17:23 +0000)]
Make evutil_parse_sockaddr_port give a useful socket-length output.
svn:r1118
Nick Mathewson [Wed, 11 Feb 2009 17:22:40 +0000 (17:22 +0000)]
Better comments for some confusing-to-me code.
svn:r1117