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
Niels Provos
cf47f86b74
put the evdns documentation into the header file. pathetic start of evdns manpage. a little bit
...
more testing and debug output for the DNS regression test. add a BSD copyright to evdns.h with
appropriate explanations.
svn:r239
2006-10-09 00:48:42 +00:00
Niels Provos
fe1dfe0f40
sync evdns changes with tor - from Nick Mathewson
...
svn:r238
2006-10-05 22:59:44 +00:00
Niels Provos
64c76fbea4
typo in kqueue delete; from Bert JW Regeer
...
svn:r232
2006-09-03 21:12:59 +00:00
Niels Provos
e9c1e3f7f0
introduce evdns_init() which works on windows and unix.
...
svn:r231
2006-08-28 00:57:49 +00:00
Niels Provos
07c3fb5067
add a simple regression test for the DNS resolver; requires internet access.
...
do some KNF on evdns.c; add checks to prevent potential buffer overflows.
fix one memory leak.
svn:r230
2006-08-27 20:04:20 +00:00
Niels Provos
296739e022
fix regression test
...
svn:r223
2006-08-13 00:03:35 +00:00
Niels Provos
ba7262ebdf
reorganization of the http functionality; we separate http handling into a
...
connection object and a request object; also make it clear which buffers are
used for input and output; unittests not complete yet.
svn:r217
2006-07-17 00:33:57 +00:00
Niels Provos
6813af3f11
move http related prototypes to evhttp.h
...
svn:r214
2006-06-10 22:37:21 +00:00
Niels Provos
147b71e33c
rename http.h to http-internal.h - i wish there were decent refactoring tools
...
for open source programmers.
svn:r213
2006-06-10 22:28:21 +00:00
Niels Provos
38b33048eb
make a simple test for HTTP POST requests
...
svn:r205
2006-02-27 02:27:37 +00:00
Niels Provos
60192b4625
improved/well-completely rewritten rtsig support by Mathew Mills; fix some
...
cases where regress would not pass on Linux
svn:r204
2006-02-26 20:18:35 +00:00
Niels Provos
896bf3a260
many changes for fixing a small bug: post requests would not send the post
...
data. I took the opportunity to reorganize a bit.
svn:r201
2006-02-13 02:22:48 +00:00
Niels Provos
c398d78811
disable bufferevent after we have received the data that we care for.
...
svn:r197
2006-02-02 22:36:37 +00:00
Niels Provos
a3bb4a035f
I often need some very simple HTTP functionality, so this is a first stab
...
at integrating something really simple with HTTP. The interface is still
evolving as I start messing with it. Not all the interfaces are properly
exported yet.
I am also trying to figure out how to intelligently hide the details about
the different structures from users, so that that things can be changed
around later.
svn:r196
2006-01-22 05:08:50 +00:00
Niels Provos
139e862e32
do not remove kq inkernel flag before event_del gets to it; bug reported by
...
Tassilo von Parseval; also add a test for this behavior.
svn:r190
2005-12-17 20:15:25 +00:00
Niels Provos
8d1317d71c
add evbuffer_add_vprintf interface from artur grabowski; add some testing
...
svn:r188
2005-12-06 03:26:28 +00:00
Niels Provos
50f7aaef6b
make it compile on mac os x
...
svn:r183
2005-09-09 06:56:12 +00:00
Niels Provos
3b9b3f6b7e
don't spam on stderr
...
svn:r182
2005-09-02 05:34:14 +00:00
Niels Provos
acafd9942f
make it run on older shells; from tor user via Nick Mathewson <nickm@freehaven.net>
...
svn:r181
2005-09-02 05:34:01 +00:00
Niels Provos
5c5145dc1c
oops forgot this one
...
svn:r179
2005-08-29 07:23:51 +00:00
Niels Provos
b4ab56dc04
support for arrays on structs.
...
svn:r178
2005-08-28 23:48:16 +00:00
Niels Provos
c4e60994a2
including the tagging code that is required by event_rpcgen.py; test the
...
new functionality.
svn:r172
2005-08-22 01:34:34 +00:00
Niels Provos
fbee901e23
correctly test against SIG_ERR
...
svn:r170
2005-07-14 04:09:55 +00:00
Niels Provos
fdfa743ccc
libtoolize; from Nick Mathewson
...
svn:r153
2005-04-23 02:48:49 +00:00