]> granicus.if.org Git - libevent/log
libevent
15 years agoFix typo in mm_free
Nick Mathewson [Mon, 13 Apr 2009 18:32:24 +0000 (18:32 +0000)]
Fix typo in mm_free

svn:r1173

15 years agoAdd draft (nonworking) versions of iocp code to hack on more.
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

15 years agoFix two windows compilation bugs.
Nick Mathewson [Mon, 13 Apr 2009 18:23:02 +0000 (18:23 +0000)]
Fix two windows compilation bugs.

svn:r1171

15 years agoLocking support for bufferevents.
Nick Mathewson [Mon, 13 Apr 2009 03:17:19 +0000 (03:17 +0000)]
Locking support for bufferevents.

svn:r1170

15 years agoRefactor new elements of bufferevent into bufferevent_private structure
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

15 years agoRemove if0 code in bufferevent_struct.h
Nick Mathewson [Mon, 13 Apr 2009 03:07:37 +0000 (03:07 +0000)]
Remove if0 code in bufferevent_struct.h

svn:r1168

15 years agoUse freeze operations to prevent shenanegans on bufferevent pair evbuffers.
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

15 years agoDo not remove an empty chain that we have pinned for reading when we drain the whole...
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

15 years agoadd pin/unpin functions, and a deref-and-free pair.
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

15 years agoAdd a reference count to evbuffers.
Nick Mathewson [Mon, 13 Apr 2009 03:06:27 +0000 (03:06 +0000)]
Add a reference count to evbuffers.

svn:r1164

15 years agoMake evbuffer_commit_space trigger callbacks.
Nick Mathewson [Mon, 13 Apr 2009 03:06:05 +0000 (03:06 +0000)]
Make evbuffer_commit_space trigger callbacks.

svn:r1163

15 years agoRefactor the code that sets up iovecs for reading into its own function. iocp needs...
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

15 years agoAdd a new EVUTIL_UPCAST macro so that I do not need to keep figuring out the right...
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

15 years agoreindent macros in util-internal.h
Nick Mathewson [Sun, 12 Apr 2009 22:02:12 +0000 (22:02 +0000)]
reindent macros in util-internal.h

svn:r1159

15 years agohttp benchmark: add a way to change the size of the buffer; also use add_reference
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

15 years agodocument evhttp_parse_query better
Niels Provos [Sat, 11 Apr 2009 15:26:29 +0000 (15:26 +0000)]
document evhttp_parse_query better

svn:r1157

15 years agoprevious commit changed the semantics of evhttp_decode_uri; need a test for that
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

15 years agoFacility to make evbuffers get their callbacks deferred.
Nick Mathewson [Fri, 10 Apr 2009 20:43:08 +0000 (20:43 +0000)]
Facility to make evbuffers get their callbacks deferred.

svn:r1154

15 years agoBetter explanation for bufferevent_pair
Nick Mathewson [Fri, 10 Apr 2009 20:42:53 +0000 (20:42 +0000)]
Better explanation for bufferevent_pair

svn:r1153

15 years agoAdd a linked-pair abstraction to bufferevents.
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

15 years agoA couple of tweaks for deferred callbacks.
Nick Mathewson [Fri, 10 Apr 2009 14:58:15 +0000 (14:58 +0000)]
A couple of tweaks for deferred callbacks.

svn:r1151

15 years agoInitial support for a lightweight 'deferred callbacks'.
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

15 years agoDon't allow internal events to starve lower-priority events.
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

15 years agoFix parsing of queries where the encoded queries contained \r, \n or +
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

15 years agorevert last commit; git user error
Niels Provos [Fri, 10 Apr 2009 05:22:15 +0000 (05:22 +0000)]
revert last commit; git user error

svn:r1147

15 years agoinitial version of query decoding patch
Niels Provos [Fri, 10 Apr 2009 05:18:18 +0000 (05:18 +0000)]
initial version of query decoding patch

svn:r1146

15 years agoadd a missing "static" to timeout_process.
Nick Mathewson [Wed, 8 Apr 2009 16:57:38 +0000 (16:57 +0000)]
add a missing "static" to timeout_process.

svn:r1145

15 years agoPrevent unsupported modifications to bufferevent_sock buffers.
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

15 years agoAdd freeze support to evbuffers.
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

15 years agoAdd a new facility to "pin" the memory in an evbuffer chain.
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

15 years agoRefactor the zlib and pthreads tests to appear in the regular tinytest tree structure.
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

15 years agoAvoid a double event_del() in evdns.c.
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

15 years agoFix evdns_cancel to alert callback and free associated RAM.
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

15 years agoFix a double-delete on the request timeout event. Port from Tor.
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

15 years agoFinally, get unit tests to pass with threading turned off again.
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

15 years agoMunge the read_suspended flag before re-enabling reads on the underlying bufferevent...
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

15 years agoActually, move EVUTIL_NIL_STMT to util-internal.h
Nick Mathewson [Sun, 5 Apr 2009 04:10:05 +0000 (04:10 +0000)]
Actually, move EVUTIL_NIL_STMT to util-internal.h

svn:r1135

15 years agoAdd locking to evbuffers.
Nick Mathewson [Sun, 5 Apr 2009 02:44:17 +0000 (02:44 +0000)]
Add locking to evbuffers.

svn:r1134

15 years agoFix build with thread support disabled, and make no-op macros a little more no-oppy.
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

15 years agoAdd some more utility macros to evthread-internal.h
Nick Mathewson [Sun, 5 Apr 2009 02:43:55 +0000 (02:43 +0000)]
Add some more utility macros to evthread-internal.h

svn:r1132

15 years agoMake the new evbuffer callbacks use a new struct-based interface.
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

15 years agoAdd a new improved search function.
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

15 years agoGlibc mkstemp requires exactly 6 Xs.
Nick Mathewson [Wed, 1 Apr 2009 16:08:34 +0000 (16:08 +0000)]
Glibc mkstemp requires exactly 6 Xs.

svn:r1129

15 years agocorrect evbuffer_drain documentation from John Khvatov
Niels Provos [Mon, 30 Mar 2009 17:36:22 +0000 (17:36 +0000)]
correct evbuffer_drain documentation from John Khvatov

svn:r1127

15 years agoinclude Doxyfile in tar ball; from Jeff Garzik
Niels Provos [Thu, 12 Mar 2009 17:43:43 +0000 (17:43 +0000)]
include Doxyfile in tar ball; from Jeff Garzik

svn:r1125

15 years agoMake tmpfile code compile without warnings
Nick Mathewson [Fri, 13 Feb 2009 13:43:35 +0000 (13:43 +0000)]
Make tmpfile code compile without warnings

svn:r1123

15 years agoa simple test for evbuffer_add_file
Niels Provos [Fri, 13 Feb 2009 01:42:59 +0000 (01:42 +0000)]
a simple test for evbuffer_add_file

svn:r1122

15 years agoMake threading functions global, like the mm_ functions. Use the libevent_pthread...
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

15 years agoFix some of the crazier indentation and tabbing choices in evdns.c
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

15 years agoNew bind-to option to allow DNS clients to bind to arbitrary ports for their outgoing...
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

15 years agoMake evutil_parse_sockaddr_port give a useful socket-length output.
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

15 years agoBetter comments for some confusing-to-me code.
Nick Mathewson [Wed, 11 Feb 2009 17:22:40 +0000 (17:22 +0000)]
Better comments for some confusing-to-me code.

svn:r1117

15 years agoPort some evdns changes over from Tor.
Nick Mathewson [Wed, 11 Feb 2009 17:21:48 +0000 (17:21 +0000)]
Port some evdns changes over from Tor.

svn:r1116

15 years agooops; coding too quickly on nil-filter patch. Caught by niels.
Nick Mathewson [Wed, 11 Feb 2009 05:17:27 +0000 (05:17 +0000)]
oops; coding too quickly on nil-filter patch.  Caught by niels.

svn:r1115

15 years agoDo not use ctypes functions in cases when we need the "net" locale.
Nick Mathewson [Tue, 10 Feb 2009 21:40:12 +0000 (21:40 +0000)]
Do not use ctypes functions in cases when we need the "net" locale.

This patch adds a new set of EVUTIL_IS* functions to replace use of
the ctypes is* functions in all cases where we care about characters'
interpretations in net ascii rather than in the locale.  For example,
when we're working with DNS hostnames, we don't want to do the 0x20
hack on non-ascii characters, even if the host thinks they should be
isalpha.

svn:r1114

15 years agoStop rolling our own offsetof twice.
Nick Mathewson [Tue, 10 Feb 2009 21:39:56 +0000 (21:39 +0000)]
Stop rolling our own offsetof twice.

svn:r1113

15 years agoMake a couple of newer evdns functions more bulletproof.
Nick Mathewson [Tue, 10 Feb 2009 19:43:19 +0000 (19:43 +0000)]
Make a couple of newer evdns functions more bulletproof.

svn:r1112

15 years agoStop using platform inet_aton/inet_addr; they can behave strangely on certain misform...
Nick Mathewson [Tue, 10 Feb 2009 19:43:11 +0000 (19:43 +0000)]
Stop using platform inet_aton/inet_addr; they can behave strangely on certain misformed addresses.

svn:r1111

15 years agoExplode less badly in the case where we're told to prepend/append/remove a buffer...
Nick Mathewson [Tue, 10 Feb 2009 19:39:22 +0000 (19:39 +0000)]
Explode less badly in the case where we're told to prepend/append/remove a buffer to itself. Note some API/implementation deficiencies.

svn:r1110

15 years agoMake default (nil) filter use evbuffer_remove_buffer to respect the high-water mark...
Nick Mathewson [Tue, 10 Feb 2009 19:39:12 +0000 (19:39 +0000)]
Make default (nil) filter use evbuffer_remove_buffer to respect the high-water mark of the target buffer.

svn:r1109

15 years agoTest some formerly untested prepend cases of evbuffer. Now evbuffer coverage is over...
Nick Mathewson [Tue, 10 Feb 2009 19:39:03 +0000 (19:39 +0000)]
Test some formerly untested prepend cases of evbuffer. Now evbuffer coverage is over 80 percent.

svn:r1108

15 years agoMore unit tests for evbuffer_add_reference to make sure that certain interleaved...
Nick Mathewson [Tue, 10 Feb 2009 19:38:54 +0000 (19:38 +0000)]
More unit tests for evbuffer_add_reference to make sure that certain interleaved data patterns work; that free invokes callback; that callbacks are not invoked too early or later; etc.

svn:r1107

15 years agoA few more comments on evbuffer-internal structures.
Nick Mathewson [Tue, 10 Feb 2009 19:38:43 +0000 (19:38 +0000)]
A few more comments on evbuffer-internal structures.

svn:r1106

15 years agoAdd an assertion to evbuffer_chain_align so we can't reuse it in the future.
Nick Mathewson [Tue, 10 Feb 2009 19:38:34 +0000 (19:38 +0000)]
Add an assertion to evbuffer_chain_align so we can't reuse it in the future.

svn:r1105

15 years agoRemove some needless includes
Nick Mathewson [Tue, 10 Feb 2009 19:38:25 +0000 (19:38 +0000)]
Remove some needless includes

svn:r1104

15 years agouse new evutil_make_listen_socket_reuseable() in http.c
Nick Mathewson [Tue, 10 Feb 2009 19:38:14 +0000 (19:38 +0000)]
use new evutil_make_listen_socket_reuseable() in http.c

svn:r1103

15 years agoNew function to abstract SO_REUSEADDR.
Nick Mathewson [Tue, 10 Feb 2009 19:38:05 +0000 (19:38 +0000)]
New function to abstract SO_REUSEADDR.

svn:r1102

15 years agoMove bufferevent tests to regress_bufferevent.c file.
Nick Mathewson [Tue, 3 Feb 2009 18:28:53 +0000 (18:28 +0000)]
Move bufferevent tests to regress_bufferevent.c file.

svn:r1101

15 years agoEnable (and debug) WSARecv for evbuffer iovec-like reads.
Nick Mathewson [Tue, 3 Feb 2009 05:22:57 +0000 (05:22 +0000)]
Enable (and debug) WSARecv for evbuffer iovec-like reads.

The two things we were missing: the flags parameter is not optional, and an error can actually indicate a close.

svn:r1100

15 years agoCompile http_connection_retry_test, but mark it skipped on win32.
Nick Mathewson [Mon, 2 Feb 2009 22:17:32 +0000 (22:17 +0000)]
Compile http_connection_retry_test, but mark it skipped on win32.

svn:r1099

15 years agoSome mingws have AF_UNIX, which may have prevented our socketpair from working at...
Nick Mathewson [Mon, 2 Feb 2009 21:59:53 +0000 (21:59 +0000)]
Some mingws have AF_UNIX, which may have prevented our socketpair from working at all on them.  Fix that.

svn:r1098

15 years agoconvert new bufferevent_*.c files to event-config.h only.
Nick Mathewson [Mon, 2 Feb 2009 21:24:04 +0000 (21:24 +0000)]
convert new bufferevent_*.c files to event-config.h only.

svn:r1097

15 years agoforward-port: Make evdns_resolve_reverse args const.
Nick Mathewson [Mon, 2 Feb 2009 19:22:27 +0000 (19:22 +0000)]
forward-port: Make evdns_resolve_reverse args const.

svn:r1096

15 years agocheckpoint work on big bufferevent refactoring
Nick Mathewson [Mon, 2 Feb 2009 19:22:13 +0000 (19:22 +0000)]
checkpoint work on big bufferevent refactoring

svn:r1095

15 years agoAllocate callback entries with contents 0d out.
Nick Mathewson [Sun, 1 Feb 2009 05:26:47 +0000 (05:26 +0000)]
Allocate callback entries with contents 0d out.

svn:r1093

15 years agoEnable the edge-triggered test again
Nick Mathewson [Sun, 1 Feb 2009 02:20:16 +0000 (02:20 +0000)]
Enable the edge-triggered test again

svn:r1092

15 years agoSupport temporarily suspending an evbuffer callback. This is different from disablin...
Nick Mathewson [Sun, 1 Feb 2009 01:43:58 +0000 (01:43 +0000)]
Support temporarily suspending an evbuffer callback.  This is different from disabling the callback, since we want to process changes, but not just yet.

svn:r1091

15 years agoUnit tests for evbuffer callback manipulation
Nick Mathewson [Sun, 1 Feb 2009 01:07:42 +0000 (01:07 +0000)]
Unit tests for evbuffer callback manipulation

svn:r1090

15 years agoFix a typo in buffer.h
Nick Mathewson [Sun, 1 Feb 2009 01:07:33 +0000 (01:07 +0000)]
Fix a typo in buffer.h

svn:r1089

15 years agoChange evbuffer callbacks to use tinytest natively and never assert.
Nick Mathewson [Sun, 1 Feb 2009 01:07:22 +0000 (01:07 +0000)]
Change evbuffer callbacks to use tinytest natively and never assert.

svn:r1088

15 years agoMove evbuffer tests into their own file.
Nick Mathewson [Sun, 1 Feb 2009 01:07:12 +0000 (01:07 +0000)]
Move evbuffer tests into their own file.

svn:r1087

15 years agoslightly more coverage for evutil.
Nick Mathewson [Sat, 31 Jan 2009 19:32:20 +0000 (19:32 +0000)]
slightly more coverage for evutil.

svn:r1086

15 years agoConvert evtag test.
Nick Mathewson [Sat, 31 Jan 2009 18:36:47 +0000 (18:36 +0000)]
Convert evtag test.

svn:r1085

15 years agoMove rpc_test to regress_rpc.
Nick Mathewson [Sat, 31 Jan 2009 18:36:37 +0000 (18:36 +0000)]
Move rpc_test to regress_rpc.

svn:r1084

15 years agoConvert RPC suite. There are still some places it can exit(1), but those always...
Nick Mathewson [Sat, 31 Jan 2009 18:36:24 +0000 (18:36 +0000)]
Convert RPC suite.  There are still some places it can exit(1), but those always run forked, so no big deal.

svn:r1083

15 years agoAdd missing initializers
Nick Mathewson [Sat, 31 Jan 2009 18:36:08 +0000 (18:36 +0000)]
Add missing initializers

svn:r1082

15 years agoPort DNS tests.
Nick Mathewson [Sat, 31 Jan 2009 07:32:14 +0000 (07:32 +0000)]
Port DNS tests.

svn:r1081

15 years agoTinytest update: mostly just to allow test skipping.
Nick Mathewson [Sat, 31 Jan 2009 07:32:00 +0000 (07:32 +0000)]
Tinytest update: mostly just to allow test skipping.

svn:r1080

15 years agoBuild with the -fno-strict-aliasing flag on GCC.
Nick Mathewson [Sat, 31 Jan 2009 07:31:47 +0000 (07:31 +0000)]
Build with the -fno-strict-aliasing flag on GCC.

You do not want to know about the 2 hours I just spent tracking down
an evdns bug that only affected me on some platforms to the way we
were using sockaddr* and sockaddr_in*.  Suffice it to say that I do
not think this is the only C99-aliasing-dubiousness in our code, nor
that I am smart enough to keep my code correct with the GCC's strict
aliasing optimizations in place.

svn:r1079

15 years agoDo not attempt to pass a va_args to regular snprintf. Hilarity will ensue. Fortunat...
Nick Mathewson [Sat, 31 Jan 2009 05:45:26 +0000 (05:45 +0000)]
Do not attempt to pass a va_args to regular snprintf.  Hilarity will ensue.  Fortunately, 1.4 does not have this bug.

svn:r1078

15 years agoRename a couple of http tests so they all end with _test. This lets us simplify...
Nick Mathewson [Sat, 31 Jan 2009 05:45:16 +0000 (05:45 +0000)]
Rename a couple of http tests so they all end with _test.  This lets us simplify the naming.

svn:r1077

15 years agoPort the HTTP unit tests. Most are still legacy (since they use test_ok so much...
Nick Mathewson [Fri, 30 Jan 2009 17:44:13 +0000 (17:44 +0000)]
Port the HTTP unit tests.  Most are still legacy (since they use test_ok so much), but at least they no longer exit(1) on failure

svn:r1076

15 years agoMove util tests to regress_util.c
Nick Mathewson [Fri, 30 Jan 2009 17:43:59 +0000 (17:43 +0000)]
Move util tests to regress_util.c

svn:r1075

15 years agoConvert test_evutil_strtoll to new framework.
Nick Mathewson [Fri, 30 Jan 2009 17:43:48 +0000 (17:43 +0000)]
Convert test_evutil_strtoll to new framework.

svn:r1074

15 years agoRefactor unit tests using my spiffy new "tinytest" framework.
Nick Mathewson [Thu, 29 Jan 2009 23:19:57 +0000 (23:19 +0000)]
Refactor unit tests using my spiffy new "tinytest" framework.

The big win here is that we can get process-level isolation.

This has been tested to work okay on at least Linux and Win32.  Only
the tests in regress.c have been converted wrapped in the new wrapper
functions; the others are still on the old system.

svn:r1073

15 years agoMake ht-internal.h get distributed.
Nick Mathewson [Thu, 29 Jan 2009 20:07:59 +0000 (20:07 +0000)]
Make ht-internal.h get distributed.

svn:r1072

15 years agofix signed/unsigned warning in unit tests. can we just use "char*" on all new APIs...
Nick Mathewson [Thu, 29 Jan 2009 18:15:36 +0000 (18:15 +0000)]
fix signed/unsigned warning in unit tests.  can we just use "char*" on all new APIs?  this void/unsigned char*/char* business is awful.

svn:r1071

15 years agoHave util-internal.h define socklen_t if we need it, and include it appropriately...
Nick Mathewson [Thu, 29 Jan 2009 15:09:24 +0000 (15:09 +0000)]
Have util-internal.h define socklen_t if we need it, and include it appropriately.  This fixes win32 compilation.

svn:r1070

15 years agomake it so that evbuffer_add_file where we read the complete contents of the file...
Niels Provos [Thu, 29 Jan 2009 03:22:47 +0000 (03:22 +0000)]
make it so that evbuffer_add_file where we read the complete contents of the file can fail without side effects

svn:r1069

15 years agotest evbuffer_add_reference
Niels Provos [Thu, 29 Jan 2009 03:20:40 +0000 (03:20 +0000)]
test evbuffer_add_reference

svn:r1068