Nick Mathewson [Thu, 20 Sep 2007 18:27:01 +0000 (18:27 +0000)]
r15220@catbus: nickm | 2007-09-20 14:22:57 -0400
Another patch from Trond: Skip calling gettime() in timeout_process if we have no events in the timetree.
Nick Mathewson [Thu, 20 Sep 2007 18:26:56 +0000 (18:26 +0000)]
r15219@catbus: nickm | 2007-09-20 14:17:32 -0400
Apply patch from Trond Norbye with recommendations from Magne Mahre and Hannah Schroeter: make autogen.sh work on systems where /bin/sh is not bash.
Nick Mathewson [Thu, 20 Sep 2007 18:26:51 +0000 (18:26 +0000)]
r15218@catbus: nickm | 2007-09-20 14:14:05 -0400
More win32 fixes: Use evutil_make_socket_nonblocking and EVUTIL_CLOSESOCKET consistently throughout the code.
Nick Mathewson [Thu, 20 Sep 2007 18:26:46 +0000 (18:26 +0000)]
r15217@catbus: nickm | 2007-09-20 14:04:32 -0400
Fix win32 signals: teach win32 that we have per-base signal queues; teach signal.c that not everybody has sigaction().
Nick Mathewson [Thu, 20 Sep 2007 18:26:40 +0000 (18:26 +0000)]
r15216@catbus: nickm | 2007-09-20 13:58:23 -0400
Add a new evutil module to contain the usual cross-platform hacks: socketpair, closesocket, and make_socket_nonblocking()
Nick Mathewson [Tue, 18 Sep 2007 15:12:20 +0000 (15:12 +0000)]
r15097@catbus: nickm | 2007-09-18 11:08:42 -0400
Wrap all newly-added Doxygen comments to fit in a consistent 80 columns, and remove all their trailing whitespace.
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.
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".
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.