Niels Provos
11a0a9e42f
allow \r or \n individually to separate HTTP headers instead of
...
the standard "\r\n"; from Charles Kerr.
svn:r406
2007-08-25 18:47:22 +00:00
Niels Provos
49e01ff789
include event.h in evhttp.h; found by Charles Kerr
...
svn:r404
2007-08-25 18:42:42 +00:00
Nick Mathewson
5f04e3b7b5
Bump version number in svn trunk to 1.3.99.
...
svn:r403
2007-08-24 01:08:39 +00:00
Niels Provos
9a99bab0db
let's try to keep a log of changes; as suggested by Nick
...
svn:r401
2007-08-23 15:36:38 +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
41c69fc335
fix typo in comments
...
svn:r399
2007-08-19 17:26:02 +00:00
Nick Mathewson
3d2320b218
r14697@catbus: nickm | 2007-08-19 13:24:39 -0400
...
Remove redundant typedef of socklen_t in evdns.c: On windows, it is already defined by autoconf in config.h.
svn:r398
2007-08-19 17:25:52 +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
12fe087e12
r14505@catbus: nickm | 2007-08-10 12:35:52 -0400
...
Fix win32 build errors (reported by Phobos): mingw gcc seems to dislike unnamed function parameters.
svn:r390
2007-08-10 16:37:33 +00:00
Nick Mathewson
7d821580e8
Fix compile warning on osx: the udata field in struct kevent is supposed to be void*, not intptr_t.
...
svn:r387
2007-08-10 16:31:02 +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
b7ff0248c7
fix memory leak; found by Elliot F
...
svn:r378
2007-07-31 00:32:00 +00:00
Niels Provos
5e0ac7f239
check for sys/select.h
...
svn:r377
2007-07-31 00:25:22 +00:00
Niels Provos
aa106169a0
use AM_CLFAGS from Jan Kneschke
...
svn:r376
2007-07-31 00:21:04 +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
10267216a6
initalize ev_res from Scott Lamb
...
svn:r372
2007-07-30 23:49:00 +00:00
Niels Provos
3ad6b47e03
make clock_monotonic work; do not use default timeout;
...
from Scott Lamb, plus some fixes from me.
svn:r371
2007-07-30 22:41:00 +00:00
Niels Provos
d7918e7963
drop illegal header values
...
svn:r370
2007-07-30 21:27:33 +00:00
Niels Provos
b15d715cbc
make event_rpcgen.py use the uint_ types;
...
make event.h include stdint.h (wonder which OS that will break)
svn:r369
2007-07-06 03:36:31 +00:00
Niels Provos
753ffa563b
convert u_int8_t types to uint8_t types
...
svn:r368
2007-06-30 19:08:46 +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
aa5c806888
make it compile on solaris; from Andrei Nigmatulin
...
svn:r366
2007-06-16 03:23:15 +00:00
Niels Provos
d1848a8872
include config.h
...
svn:r365
2007-06-14 04:38:42 +00:00
Niels Provos
cf5c1fcebb
made the wrong fd non-blocking in accept_socket; from szjwwu
...
svn:r364
2007-06-08 16:06:23 +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
f0d0559c3e
allow DNS server to get access to the IP address for the requestor; from tor cvs via Nick Mathewson
...
svn:r362
2007-05-28 21:21:59 +00:00
Niels Provos
5d3b6a8387
fail quicker on bad replies; from tor cvs via Nick Mathewson
...
svn:r361
2007-05-28 21:20:57 +00:00
Niels Provos
d06ab8569e
fix bug where req was freed and dereferenced afterwards; from tor cvs via Nick Mathewson
...
svn:r360
2007-05-28 21:19:18 +00:00
Niels Provos
28246587c0
treat SERVERFAILED as a timeout; from tor cvs via Nick Mathewson
...
svn:r359
2007-05-28 21:17:35 +00:00
Niels Provos
5be24333ae
solaris may return short reads on resolve.conf; fix from tor cvs via Nick Mathewson
...
svn:r358
2007-05-28 21:09:00 +00:00
Niels Provos
d0111a29e9
evdns_shutdown fix from Adam Langley
...
svn:r357
2007-05-27 06:27:11 +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
5b5400f66b
permit connection free from callback; from Ben Rigas
...
svn:r354
2007-05-12 06:23:52 +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
f5aa65c9b3
man page fixes from todd miller
...
svn:r352
2007-03-22 15:09:30 +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
a968da7425
split finding of callbacks out of code
...
svn:r350
2007-03-06 06:26:10 +00:00
Niels Provos
50edb19f17
EVRPC_MAKE_REQUEST needs the pool argument
...
svn:r349
2007-03-05 07:28:15 +00:00
Niels Provos
fcd55934ae
spell Oleson correctly
...
svn:r348
2007-03-05 06:49:45 +00:00
Niels Provos
729487deb3
better conversion; cannot use event_err here.
...
svn:r344
2007-03-03 08:27:52 +00:00
Niels Provos
660662517c
proper casting for conversion
...
svn:r343
2007-03-03 08:18:20 +00:00
Niels Provos
74f7118d66
install evrpc.h header
...
svn:r342
2007-03-03 08:16:40 +00:00
Niels Provos
b5d2f9a255
rolling back r339: evconfig.h does not work
...
svn:r341
2007-03-01 06:25:18 +00:00