]>
granicus.if.org Git - libevent/log
Niels Provos [Sat, 15 Sep 2007 15:50:11 +0000 (15:50 +0000)]
fix http.c to compile properly with USE_DEBUG; from Christopher Layne
svn:r430
Niels Provos [Sat, 15 Sep 2007 00:53:47 +0000 (00:53 +0000)]
deal with out of memory situations for realloc
svn:r429
Nick Mathewson [Mon, 10 Sep 2007 14:56:00 +0000 (14:56 +0000)]
r15025@catbus: nickm | 2007-09-10 10:54:46 -0400
More DNS standard correctness changes: we preserve the CD flag,not the TC flag on responses. When we get a nonstandard query, we should say "NOTIMPL" rather than ignoring it.
svn:r428
Nick Mathewson [Mon, 10 Sep 2007 14:55:55 +0000 (14:55 +0000)]
r15024@catbus: nickm | 2007-09-10 10:49:15 -0400
Fix evdns_resolve_reverse_ipv6() so buffer is bug enough, and so the string ends with ".ip6.arpa" rather than "..ip6.arpa".
svn:r427
Nick Mathewson [Mon, 10 Sep 2007 14:55:50 +0000 (14:55 +0000)]
r15023@catbus: nickm | 2007-09-10 10:46:16 -0400
Add a missing begin-comment to the DNS_USE_OPENSSL_FOR_ID code in evdns.c.
svn:r426
Niels Provos [Mon, 10 Sep 2007 01:37:57 +0000 (01:37 +0000)]
fix another memory leak
svn:r424
Niels Provos [Mon, 10 Sep 2007 01:30:11 +0000 (01:30 +0000)]
fix a memory leak in the dns server; found by valgrind
svn:r422
Niels Provos [Sun, 9 Sep 2007 03:10:16 +0000 (03:10 +0000)]
make allocating array members in event_rpcgen more efficient, but doubling the size of
available slots every time we run out.
svn:r421
Niels Provos [Sun, 9 Sep 2007 02:33:10 +0000 (02:33 +0000)]
Fix a memory leak in which failed HTTP connections whould not free the request object
svn:r419
Niels Provos [Sun, 9 Sep 2007 02:15:34 +0000 (02:15 +0000)]
fix memory leaks/unitialized memory found by valgrind
svn:r418
Niels Provos [Sun, 9 Sep 2007 01:46:35 +0000 (01:46 +0000)]
fix a couple memory leaks; time buffer marshaling
svn:r417
Niels Provos [Fri, 7 Sep 2007 02:49:46 +0000 (02:49 +0000)]
support setting local address on an evhttp_connection
svn:r416
Nick Mathewson [Fri, 7 Sep 2007 01:18:53 +0000 (01:18 +0000)]
Another tweak on the date patch: win32 has no gmtime_r, but its gmtime() function uses thread-local storage for safety. Backportable.
svn:r414
Nick Mathewson [Fri, 7 Sep 2007 01:03:01 +0000 (01:03 +0000)]
r14975@catbus: nickm | 2007-09-06 21:00:38 -0400
Oops; we were already including sys/time.h. Remove the redundant include.
svn:r413
Nick Mathewson [Fri, 7 Sep 2007 01:02:56 +0000 (01:02 +0000)]
r14974@catbus: nickm | 2007-09-06 20:59:14 -0400
Changes to http.c: Add a Date header on replies if there is none already set. Also, include time.h unconditionally to be sure that struct tm is declared: every platform has time.h; the conditional should have been for sys/time.h.
svn:r412
Nick Mathewson [Fri, 7 Sep 2007 00:10:15 +0000 (00:10 +0000)]
r14970@catbus: nickm | 2007-09-06 20:09:39 -0400
Fix compilation on Solaris; Patch from Magne Mahre.
svn:r409
Niels Provos [Sun, 2 Sep 2007 01:33:38 +0000 (01:33 +0000)]
demote most warnings to debug messages;
execute callback later to allow freeing of connection object
svn:r407
Niels Provos [Sat, 25 Aug 2007 18:47:22 +0000 (18:47 +0000)]
allow \r or \n individually to separate HTTP headers instead of
the standard "\r\n"; from Charles Kerr.
svn:r406
Niels Provos [Sat, 25 Aug 2007 18:42:42 +0000 (18:42 +0000)]
include event.h in evhttp.h; found by Charles Kerr
svn:r404
Nick Mathewson [Fri, 24 Aug 2007 01:08:39 +0000 (01:08 +0000)]
Bump version number in svn trunk to 1.3.99.
svn:r403
Niels Provos [Thu, 23 Aug 2007 15:36:38 +0000 (15:36 +0000)]
let's try to keep a log of changes; as suggested by Nick
svn:r401
Nick Mathewson [Mon, 20 Aug 2007 14:44:15 +0000 (14:44 +0000)]
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
Niels Provos [Sun, 19 Aug 2007 17:26:02 +0000 (17:26 +0000)]
fix typo in comments
svn:r399
Nick Mathewson [Sun, 19 Aug 2007 17:25:52 +0000 (17:25 +0000)]
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
Niels Provos [Sun, 19 Aug 2007 02:41:23 +0000 (02:41 +0000)]
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
Nick Mathewson [Thu, 16 Aug 2007 21:12:53 +0000 (21:12 +0000)]
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
Nick Mathewson [Fri, 10 Aug 2007 16:37:33 +0000 (16:37 +0000)]
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
Nick Mathewson [Fri, 10 Aug 2007 16:31:02 +0000 (16:31 +0000)]
Fix compile warning on osx: the udata field in struct kevent is supposed to be void*, not intptr_t.
svn:r387
Nick Mathewson [Fri, 10 Aug 2007 15:59:31 +0000 (15:59 +0000)]
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
Niels Provos [Mon, 6 Aug 2007 21:00:49 +0000 (21:00 +0000)]
add a proper test for filtering new lines in headers
svn:r384
Niels Provos [Mon, 6 Aug 2007 20:53:33 +0000 (20:53 +0000)]
fix an embarassing bug where strchr was used with a cstring instead of a char
svn:r383
Niels Provos [Sun, 5 Aug 2007 02:15:10 +0000 (02:15 +0000)]
request dispatching fix from Elliot Foster
svn:r382
Niels Provos [Tue, 31 Jul 2007 00:32:00 +0000 (00:32 +0000)]
fix memory leak; found by Elliot F
svn:r378
Niels Provos [Tue, 31 Jul 2007 00:25:22 +0000 (00:25 +0000)]
check for sys/select.h
svn:r377
Niels Provos [Tue, 31 Jul 2007 00:21:04 +0000 (00:21 +0000)]
use AM_CLFAGS from Jan Kneschke
svn:r376
Niels Provos [Mon, 30 Jul 2007 23:56:05 +0000 (23:56 +0000)]
include config.h if HAVE_CONFIG_H from Jan Kneschke
svn:r375
Niels Provos [Mon, 30 Jul 2007 23:54:25 +0000 (23:54 +0000)]
remove c99 variable declarations; from Jan Kneschke
svn:r374
Niels Provos [Mon, 30 Jul 2007 23:53:10 +0000 (23:53 +0000)]
remove c++ comments from Jan Kneschke
svn:r373
Niels Provos [Mon, 30 Jul 2007 23:49:00 +0000 (23:49 +0000)]
initalize ev_res from Scott Lamb
svn:r372
Niels Provos [Mon, 30 Jul 2007 22:41:00 +0000 (22:41 +0000)]
make clock_monotonic work; do not use default timeout;
from Scott Lamb, plus some fixes from me.
svn:r371
Niels Provos [Mon, 30 Jul 2007 21:27:33 +0000 (21:27 +0000)]
drop illegal header values
svn:r370
Niels Provos [Fri, 6 Jul 2007 03:36:31 +0000 (03:36 +0000)]
make event_rpcgen.py use the uint_ types;
make event.h include stdint.h (wonder which OS that will break)
svn:r369
Niels Provos [Sat, 30 Jun 2007 19:08:46 +0000 (19:08 +0000)]
convert u_int8_t types to uint8_t types
svn:r368
Niels Provos [Sat, 30 Jun 2007 18:58:34 +0000 (18:58 +0000)]
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
Niels Provos [Sat, 16 Jun 2007 03:23:15 +0000 (03:23 +0000)]
make it compile on solaris; from Andrei Nigmatulin
svn:r366
Niels Provos [Thu, 14 Jun 2007 04:38:42 +0000 (04:38 +0000)]
include config.h
svn:r365
Niels Provos [Fri, 8 Jun 2007 16:06:23 +0000 (16:06 +0000)]
made the wrong fd non-blocking in accept_socket; from szjwwu
svn:r364
Niels Provos [Tue, 29 May 2007 05:38:58 +0000 (05:38 +0000)]
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
Niels Provos [Mon, 28 May 2007 21:21:59 +0000 (21:21 +0000)]
allow DNS server to get access to the IP address for the requestor; from tor cvs via Nick Mathewson
svn:r362
Niels Provos [Mon, 28 May 2007 21:20:57 +0000 (21:20 +0000)]
fail quicker on bad replies; from tor cvs via Nick Mathewson
svn:r361
Niels Provos [Mon, 28 May 2007 21:19:18 +0000 (21:19 +0000)]
fix bug where req was freed and dereferenced afterwards; from tor cvs via Nick Mathewson
svn:r360
Niels Provos [Mon, 28 May 2007 21:17:35 +0000 (21:17 +0000)]
treat SERVERFAILED as a timeout; from tor cvs via Nick Mathewson
svn:r359
Niels Provos [Mon, 28 May 2007 21:09:00 +0000 (21:09 +0000)]
solaris may return short reads on resolve.conf; fix from tor cvs via Nick Mathewson
svn:r358
Niels Provos [Sun, 27 May 2007 06:27:11 +0000 (06:27 +0000)]
evdns_shutdown fix from Adam Langley
svn:r357
Niels Provos [Wed, 23 May 2007 05:31:33 +0000 (05:31 +0000)]
support freeing of evrpc base
svn:r356
Niels Provos [Wed, 23 May 2007 05:20:59 +0000 (05:20 +0000)]
support removing of http callbacks and removing of registered RPCs
svn:r355
Niels Provos [Sat, 12 May 2007 06:23:52 +0000 (06:23 +0000)]
permit connection free from callback; from Ben Rigas
svn:r354
Niels Provos [Thu, 19 Apr 2007 03:13:12 +0000 (03:13 +0000)]
fix evbuffer_find off by one; found by Ken Cox; regression test by him
and fix by me
svn:r353
Niels Provos [Thu, 22 Mar 2007 15:09:30 +0000 (15:09 +0000)]
man page fixes from todd miller
svn:r352
Niels Provos [Sat, 10 Mar 2007 06:37:53 +0000 (06:37 +0000)]
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
Niels Provos [Tue, 6 Mar 2007 06:26:10 +0000 (06:26 +0000)]
split finding of callbacks out of code
svn:r350
Niels Provos [Mon, 5 Mar 2007 07:28:15 +0000 (07:28 +0000)]
EVRPC_MAKE_REQUEST needs the pool argument
svn:r349
Niels Provos [Mon, 5 Mar 2007 06:49:45 +0000 (06:49 +0000)]
spell Oleson correctly
svn:r348
Niels Provos [Sat, 3 Mar 2007 08:27:52 +0000 (08:27 +0000)]
better conversion; cannot use event_err here.
svn:r344
Niels Provos [Sat, 3 Mar 2007 08:18:20 +0000 (08:18 +0000)]
proper casting for conversion
svn:r343
Niels Provos [Sat, 3 Mar 2007 08:16:40 +0000 (08:16 +0000)]
install evrpc.h header
svn:r342
Niels Provos [Thu, 1 Mar 2007 06:25:18 +0000 (06:25 +0000)]
rolling back r339: evconfig.h does not work
svn:r341
Niels Provos [Wed, 28 Feb 2007 04:29:18 +0000 (04:29 +0000)]
signal fixes from scott lamb
svn:r340
Niels Provos [Wed, 28 Feb 2007 04:02:29 +0000 (04:02 +0000)]
make evconfig.h available as installed header file; not
really ideal but good enough for me; from Nick Mathewson
svn:r339
Niels Provos [Tue, 27 Feb 2007 08:16:50 +0000 (08:16 +0000)]
missing return (-1) for failures on make_socket
svn:r338
Niels Provos [Sat, 24 Feb 2007 08:33:07 +0000 (08:33 +0000)]
remove artifical 16-bit restriction on evrpc entries
svn:r337
Niels Provos [Tue, 20 Feb 2007 03:35:31 +0000 (03:35 +0000)]
remove redundant \n from event_warn
svn:r336
Niels Provos [Sun, 18 Feb 2007 19:33:19 +0000 (19:33 +0000)]
1.3a on trunk?
svn:r333
Niels Provos [Fri, 16 Feb 2007 08:48:55 +0000 (08:48 +0000)]
O(n^2) is bad
svn:r332
Niels Provos [Thu, 15 Feb 2007 22:46:04 +0000 (22:46 +0000)]
missing reference to strlcpy-internal
svn:r330
Niels Provos [Thu, 15 Feb 2007 02:16:07 +0000 (02:16 +0000)]
try to make it work with proxy-connections
svn:r329
Niels Provos [Wed, 14 Feb 2007 16:59:47 +0000 (16:59 +0000)]
fix handling of chunked requests
svn:r328
Niels Provos [Wed, 14 Feb 2007 06:10:32 +0000 (06:10 +0000)]
make chunked requests work correctly; this is done by providing
a separate callback for invidiual chunks. if this callback is
not set, all the data is going to be delivered at the end.
svn:r327
Niels Provos [Tue, 13 Feb 2007 06:25:16 +0000 (06:25 +0000)]
close connections for http/1.0 unless there is keep-alive
svn:r326
Niels Provos [Tue, 13 Feb 2007 06:14:42 +0000 (06:14 +0000)]
when parsing query parameters, we automatically unquote them
svn:r325
Niels Provos [Sun, 11 Feb 2007 07:58:39 +0000 (07:58 +0000)]
set content length even if content-type is specified
svn:r324
Niels Provos [Fri, 9 Feb 2007 07:52:04 +0000 (07:52 +0000)]
add prototype for bufferevent_base_set; from thorsten glaser
svn:r323
Niels Provos [Fri, 9 Feb 2007 07:49:55 +0000 (07:49 +0000)]
make mingw happy; from Nick Mathewson
svn:r322
Niels Provos [Thu, 8 Feb 2007 16:39:15 +0000 (16:39 +0000)]
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
Niels Provos [Thu, 8 Feb 2007 16:27:26 +0000 (16:27 +0000)]
add people I forgot to give credit to; but in alphabetical order;
from dug song (he had to remind me of this; how embarassing)
svn:r320
Niels Provos [Sat, 27 Jan 2007 08:38:51 +0000 (08:38 +0000)]
small bug fixes to AAAA resolution and regression test; from Nick Mathewson!
we love regresson tests.
svn:r319
Niels Provos [Sat, 27 Jan 2007 04:27:59 +0000 (04:27 +0000)]
Allow setting of more DNS options via API; from Nick Mathewson!!!
svn:r318
Niels Provos [Sat, 27 Jan 2007 04:25:46 +0000 (04:25 +0000)]
dns name compression; from Nick Mathewson!!
svn:r317
Niels Provos [Sat, 27 Jan 2007 04:23:33 +0000 (04:23 +0000)]
minor fixes; spelling corrections; compatibility from Nick Mathewson!
svn:r316
Niels Provos [Sat, 27 Jan 2007 04:22:36 +0000 (04:22 +0000)]
AAAA support for DNS; from Nick Mathewson.
unfortunately, no regression test
svn:r315
Niels Provos [Sat, 27 Jan 2007 04:10:08 +0000 (04:10 +0000)]
make it work on freebsd; from phil oleson
svn:r314
Niels Provos [Sat, 27 Jan 2007 04:06:52 +0000 (04:06 +0000)]
extern "C" guard for header file.
assert activeq in event.c;
from Phil Oelson.
svn:r313
Niels Provos [Sun, 21 Jan 2007 17:28:55 +0000 (17:28 +0000)]
fix ddos in dns parsing due to infinite loop;
patch from Nick Mathewson; also received
notification from Jon Oberheide.
svn:r311
Niels Provos [Thu, 18 Jan 2007 06:28:42 +0000 (06:28 +0000)]
fix http server so it can accept on high ports;
better warning messages for getnameinfo;
from Philip Lewis
svn:r310
Niels Provos [Wed, 10 Jan 2007 02:42:29 +0000 (02:42 +0000)]
make accept socket non-blocking; from dug song
svn:r309
Niels Provos [Sat, 6 Jan 2007 02:25:50 +0000 (02:25 +0000)]
evbuffer_find fix from Dug Song
svn:r308
Niels Provos [Thu, 4 Jan 2007 18:05:17 +0000 (18:05 +0000)]
from dug song:
the original code failed in the case of a large single client
request+body write - for instance, over loopback (with a larger MTU
exceeding EVBUFFER_MAX_READ).
svn:r307
Niels Provos [Wed, 3 Jan 2007 07:11:17 +0000 (07:11 +0000)]
rename strlcpy so that it does not conflict with other tests; from
Nick Mathewson.
svn:r306
Niels Provos [Sat, 23 Dec 2006 07:30:10 +0000 (07:30 +0000)]
fix a bug in an assert; from Weston Andros Adamson
svn:r305
Niels Provos [Mon, 18 Dec 2006 15:26:19 +0000 (15:26 +0000)]
http chunking support from dug song;
some refactoring and extra error checking by me
svn:r304