Niels Provos
881731028b
split libevent into two extra libraries libevent_core and libevent_extra
...
svn:r469
2007-11-03 23:45:38 +00:00
Niels Provos
1d3a008af3
provide hooks for outgoing pools; associate a base with a pool
...
svn:r468
2007-11-03 22:51:26 +00:00
Niels Provos
65236aa857
simple hooks for processing incoming and outgoing rpcs
...
svn:r466
2007-11-02 06:34:04 +00:00
Nick Mathewson
c91794e25d
Instead of read/write in regress.c, use send/recv. Now all of the win32 regression tests pass, except for http and rpc.
...
svn:r461
2007-10-12 18:02:56 +00:00
Nick Mathewson
3550be9387
r15331@catbus: nickm | 2007-09-25 11:46:52 -0400
...
Add EVPORT to test.sh script. Patch from Trond Norbye.
svn:r454
2007-09-25 15:50:50 +00:00
Niels Provos
a4cc3d148a
rename the rpc member from kill to attack; that way the
...
structure does not have the same name. might find some
bugs.
svn:r449
2007-09-22 23:57:11 +00:00
Nick Mathewson
1e1f77c5b0
Make the test/ subdirectory buildable under Windows. Well, mingw at least. The tests still don't all pass, but at least now we know that.
...
svn:r447
2007-09-20 19:08:20 +00:00
Nick Mathewson
c895ee4618
r15094@catbus: nickm | 2007-09-18 10:52:11 -0400
...
Patch from Christopher Lane: Make regress.gen.* buildable from outside source directory.
svn:r434
2007-09-18 15:11:53 +00:00
Niels Provos
8ee20a3fa4
fix memory leaks/unitialized memory found by valgrind
...
svn:r418
2007-09-09 02:15:34 +00:00
Niels Provos
e678f009a8
fix a couple memory leaks; time buffer marshaling
...
svn:r417
2007-09-09 01:46:35 +00:00
Niels Provos
98f9616bf4
support setting local address on an evhttp_connection
...
svn:r416
2007-09-07 02:49:46 +00:00
Nick Mathewson
9c3ac4e444
r14970@catbus: nickm | 2007-09-06 20:09:39 -0400
...
Fix compilation on Solaris; Patch from Magne Mahre.
svn:r409
2007-09-07 00:10:15 +00:00
Nick Mathewson
a36d4a930d
r14699@catbus: nickm | 2007-08-20 10:42:57 -0400
...
Use $top_srcdir and $srcdir variables to refer to source paths in Makefile.am. This makes it possible to build libevent from a separate directory. Patch from Kelly Anderson.
svn:r400
2007-08-20 14:44:15 +00:00
Niels Provos
67947ce381
provide evhttp_new and evhttp_bind_socket instead of evhttp_start;
...
using evhttp_new, it is possible to associate an event_base with
the http server so that multi-threaded applications can have their
own http server per thread; add appropriate testing.
svn:r397
2007-08-19 02:41:23 +00:00
Nick Mathewson
35983cd60f
r14618@catbus: nickm | 2007-08-16 17:11:47 -0400
...
In ANSI C, int func() is a function with unspecified arguments, whereas int func(void) is a function that takes no arguments. Using int func() to mean a function with no arguments is a C++ism, so let's not use or generate it.
svn:r395
2007-08-16 21:12:53 +00:00
Nick Mathewson
21a7e7ed67
r14498@catbus: nickm | 2007-08-10 11:58:32 -0400
...
Fix compilation warnings in trunk on linux with gcc 4.1.2. In time-test.c, always include time.h, so that time() is defined. In test/Makefile.am, put -I../compat in CPPFLAGS, and fix a typo. In test/regress.c, cast unsigned char pointers to char* before passing them to str[n]cmp.
svn:r385
2007-08-10 15:59:31 +00:00
Niels Provos
cd6dd9516d
add a proper test for filtering new lines in headers
...
svn:r384
2007-08-06 21:00:49 +00:00
Niels Provos
073d359061
fix an embarassing bug where strchr was used with a cstring instead of a char
...
svn:r383
2007-08-06 20:53:33 +00:00
Niels Provos
8ea5ffefc3
request dispatching fix from Elliot Foster
...
svn:r382
2007-08-05 02:15:10 +00:00
Niels Provos
9e0333a8d5
include config.h if HAVE_CONFIG_H from Jan Kneschke
...
svn:r375
2007-07-30 23:56:05 +00:00
Niels Provos
72c479e76a
remove c99 variable declarations; from Jan Kneschke
...
svn:r374
2007-07-30 23:54:25 +00:00
Niels Provos
7c6df310c9
remove c++ comments from Jan Kneschke
...
svn:r373
2007-07-30 23:53:10 +00:00
Niels Provos
f0ff792afa
fixes from Joerg Sonnenberger:
...
http.c is a violation of the ctype(3) interface and an unused function.
test/regress_http.c are incorrect format strings.
test/regress.c uses raise(3) from signal.h.
evdns.c: evdns_error_strings is unused. The GET* macros can eat the
semicolon from the expression. pos is passed in as off_t, so just pass
that down. When assigning negativ values to unsigned variables, an
explicit cast is considered good style.
svn:r367
2007-06-30 18:58:34 +00:00
Niels Provos
3794534feb
change the signature of the client rpc callback to pass in an rpc status; the status
...
allows us to determine if an error happened.
svn:r363
2007-05-29 05:38:58 +00:00
Niels Provos
621a1b2947
support freeing of evrpc base
...
svn:r356
2007-05-23 05:31:33 +00:00
Niels Provos
0c2808246a
support removing of http callbacks and removing of registered RPCs
...
svn:r355
2007-05-23 05:20:59 +00:00
Niels Provos
4408a5f8fc
fix evbuffer_find off by one; found by Ken Cox; regression test by him
...
and fix by me
svn:r353
2007-04-19 03:13:12 +00:00
Niels Provos
41b7cbc381
more the signal base into the event base; this removes global state and makes signals
...
work better with threading; from Wouter Wijngaards
small fixes for kqueue and style by me
svn:r351
2007-03-10 06:37:53 +00:00
Niels Provos
50edb19f17
EVRPC_MAKE_REQUEST needs the pool argument
...
svn:r349
2007-03-05 07:28:15 +00:00
Niels Provos
b5d2f9a255
rolling back r339: evconfig.h does not work
...
svn:r341
2007-03-01 06:25:18 +00:00
Niels Provos
8d94bd03eb
signal fixes from scott lamb
...
svn:r340
2007-02-28 04:29:18 +00:00
Niels Provos
127c260bb7
make evconfig.h available as installed header file; not
...
really ideal but good enough for me; from Nick Mathewson
svn:r339
2007-02-28 04:02:29 +00:00
Niels Provos
faf5f73a69
dns server support from Nick Mathewson; tiny tweaks
...
to the regression test from me to make it run on
systems where stack variables get initialized with
trash.
svn:r321
2007-02-08 16:39:15 +00:00
Niels Provos
121efe6530
small bug fixes to AAAA resolution and regression test; from Nick Mathewson!
...
we love regresson tests.
svn:r319
2007-01-27 08:38:51 +00:00
Niels Provos
d5d04949e3
fix http server so it can accept on high ports;
...
better warning messages for getnameinfo;
from Philip Lewis
svn:r310
2007-01-18 06:28:42 +00:00
Niels Provos
0db257b828
rename strlcpy so that it does not conflict with other tests; from
...
Nick Mathewson.
svn:r306
2007-01-03 07:11:17 +00:00
Niels Provos
942656bb5c
persistent connections are somewhat complicated; detect on the client side if the
...
server closes a persistent connection. previously, we would have failed the next
request on that connection. provide test case.
svn:r277
2006-11-23 06:32:20 +00:00
Niels Provos
30a49b57da
test that rpc timeouts work correctly
...
svn:r275
2006-11-22 07:30:34 +00:00
Niels Provos
2d028ef6c1
fix a bug where rpc would not be scheduled when they were queued; test for it.
...
allow a configurable timeout for connections and RPCs.
svn:r274
2006-11-22 06:54:28 +00:00
Niels Provos
4aa780d6ad
don't require string literal for message name
...
svn:r270
2006-11-20 07:57:36 +00:00
Niels Provos
ff43ed5b33
finish RPC client support
...
svn:r269
2006-11-20 07:44:37 +00:00
Niels Provos
fda1216b6e
generate client request code via macro; flesh out the pools a little bit.
...
svn:r268
2006-11-20 03:32:53 +00:00
Niels Provos
31ba30abfe
make regression test work for poll and select
...
svn:r265
2006-11-18 08:51:12 +00:00
Niels Provos
9d81ac48f8
test both piplining on persistent and non-persistent connections
...
svn:r262
2006-11-18 03:43:26 +00:00
Niels Provos
36212f9df0
make persistent connections work; needs more testing
...
svn:r261
2006-11-18 03:05:26 +00:00
Niels Provos
a67d9cb115
add "Connection: close" to the output headers of the HTTP server reply;
...
we don't currently support persistent connections; although that's going
to be easy to add.
svn:r259
2006-11-17 07:45:42 +00:00
Niels Provos
c4836d1053
make sure that the rpc callback receives an unmarshaled payload;
...
make sure that the rpc reply contains a good rpc structure, too.
svn:r258
2006-11-17 06:06:17 +00:00
Niels Provos
9d9d60b1ff
forgot to add file
...
svn:r255
2006-11-16 08:21:27 +00:00
Niels Provos
f554234f74
first stab at an rpc layer; this breaks the regression test.
...
svn:r254
2006-11-16 07:36:20 +00:00
Niels Provos
3eec7f7c64
make it 1.2; fix some size issues for printf in regression code
...
svn:r242
2006-10-15 21:55:13 +00:00