Niels Provos
a4cc3d148a
rename the rpc member from kill to attack; that way the
...
structure does not have the same name. might find some
bugs.
svn:r449
2007-09-22 23:57:11 +00:00
Nick Mathewson
db43c1e111
On win32, sockets apparently can't be used with ReadFile and WriteFile: You need send() and recv() instead. Also, you need to use ioctlsocket() with sockets, not ioctl. [Fixes evbuffer regression tests.]
...
svn:r448
2007-09-20 19:36:03 +00:00
Nick Mathewson
1e1f77c5b0
Make the test/ subdirectory buildable under Windows. Well, mingw at least. The tests still don't all pass, but at least now we know that.
...
svn:r447
2007-09-20 19:08:20 +00:00
Nick Mathewson
d85bce4e96
Remove gratuitous tor-isms in evutil_socketpair(); fix a windows warning in http.c.
...
svn:r446
2007-09-20 18:38:31 +00:00
Nick Mathewson
f4c84e8628
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.
svn:r445
2007-09-20 18:27:01 +00:00
Nick Mathewson
5a0d671f0e
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.
svn:r444
2007-09-20 18:26:56 +00:00
Nick Mathewson
8b256b8e86
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.
svn:r443
2007-09-20 18:26:51 +00:00
Nick Mathewson
f0e06d75e5
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().
svn:r442
2007-09-20 18:26:46 +00:00
Nick Mathewson
250071830a
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()
svn:r441
2007-09-20 18:26:40 +00:00
Nick Mathewson
626cc5f982
r15168@catbus: nickm | 2007-09-19 11:24:30 -0400
...
Add a new function to evdns to override the default transaction ID generation code.
svn:r440
2007-09-19 15:27:53 +00:00
Nick Mathewson
7f57289f99
r15103@catbus: nickm | 2007-09-18 11:13:09 -0400
...
Use a dummy target to ensure that doxygen gets rebuilt every time we "make doxygen".
svn:r439
2007-09-18 15:16:23 +00:00
Nick Mathewson
47ed792cb6
r15102@catbus: nickm | 2007-09-18 11:12:43 -0400
...
Make the autogen.sh script executable.
svn:r438
2007-09-18 15:16:17 +00:00
Nick Mathewson
d69a4c9ec4
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.
svn:r437
2007-09-18 15:12:20 +00:00
Nick Mathewson
7135ffb6fc
r15096@catbus: nickm | 2007-09-18 11:02:12 -0400
...
Add Doxygen documentation to header files; patch from Mark Heily.
svn:r436
2007-09-18 15:12:09 +00:00
Nick Mathewson
c895ee4618
r15094@catbus: nickm | 2007-09-18 10:52:11 -0400
...
Patch from Christopher Lane: Make regress.gen.* buildable from outside source directory.
svn:r434
2007-09-18 15:11:53 +00:00
Niels Provos
7b7742fce7
optimize by removing a variable
...
svn:r433
2007-09-16 02:26:37 +00:00
Nick Mathewson
bfd27f58da
r15086@catbus: nickm | 2007-09-15 14:42:55 -0400
...
Patch from Trond Norbye: Fix two solaris bugs.
svn:r432
2007-09-15 18:45:57 +00:00
Niels Provos
b835ee085f
fix http.c to compile properly with USE_DEBUG; from Christopher Layne
...
svn:r430
2007-09-15 15:50:11 +00:00
Niels Provos
640c61bac9
deal with out of memory situations for realloc
...
svn:r429
2007-09-15 00:53:47 +00:00
Nick Mathewson
82153e6e92
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
2007-09-10 14:56:00 +00:00
Nick Mathewson
8b39254926
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
2007-09-10 14:55:55 +00:00
Nick Mathewson
c396c767e2
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
2007-09-10 14:55:50 +00:00
Niels Provos
fc1211ed8a
fix another memory leak
...
svn:r424
2007-09-10 01:37:57 +00:00
Niels Provos
7c66bf33e1
fix a memory leak in the dns server; found by valgrind
...
svn:r422
2007-09-10 01:30:11 +00:00
Niels Provos
babd622f7a
make allocating array members in event_rpcgen more efficient, but doubling the size of
...
available slots every time we run out.
svn:r421
2007-09-09 03:10:16 +00:00
Niels Provos
e2f564116e
Fix a memory leak in which failed HTTP connections whould not free the request object
...
svn:r419
2007-09-09 02:33:10 +00:00
Niels Provos
8ee20a3fa4
fix memory leaks/unitialized memory found by valgrind
...
svn:r418
2007-09-09 02:15:34 +00:00
Niels Provos
e678f009a8
fix a couple memory leaks; time buffer marshaling
...
svn:r417
2007-09-09 01:46:35 +00:00
Niels Provos
98f9616bf4
support setting local address on an evhttp_connection
...
svn:r416
2007-09-07 02:49:46 +00:00
Nick Mathewson
23866b7657
Another tweak on the date patch: win32 has no gmtime_r, but its gmtime() function uses thread-local storage for safety. Backportable.
...
svn:r414
2007-09-07 01:18:53 +00:00
Nick Mathewson
003698c0df
r14975@catbus: nickm | 2007-09-06 21:00:38 -0400
...
Oops; we were already including sys/time.h. Remove the redundant include.
svn:r413
2007-09-07 01:03:01 +00:00
Nick Mathewson
8d5ef326ba
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
2007-09-07 01:02:56 +00:00
Nick Mathewson
9c3ac4e444
r14970@catbus: nickm | 2007-09-06 20:09:39 -0400
...
Fix compilation on Solaris; Patch from Magne Mahre.
svn:r409
2007-09-07 00:10:15 +00:00
Niels Provos
ff9e1af68f
demote most warnings to debug messages;
...
execute callback later to allow freeing of connection object
svn:r407
2007-09-02 01:33:38 +00:00
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