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.
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.
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.
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.
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.
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.
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.
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
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.
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.
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).
Niels Provos [Tue, 12 Dec 2006 04:02:07 +0000 (04:02 +0000)]
From Nick Mathewson:
This patch resets the successive timeout count to zero when:
- A nameserver comes up
- We receive a reply from a nameserver
- We decide to not use the nameserver for a while because of its
timeout count.
This patch also changes the timeout threshold from 3 to 5 seconds.
Niels Provos [Sat, 9 Dec 2006 02:58:12 +0000 (02:58 +0000)]
low-level interfaces for streaming; from dug song
i applied some bug fixes and slight re-arranged the logic
on when to call the close notification callback;
i also don't like the streaming interface; i'd rather
see it do the chunked response formatting explicitly.