286 Commits

Author SHA1 Message Date
Nick Mathewson
7c507668d7 r16489@catbus: nickm | 2007-11-06 22:51:05 -0500
Do not use "class" as identifier in evdns.h; but use a backward-compatible fix. (Should fix bug 1826515, originally reported by Roger Clark)


svn:r486
2007-11-07 03:52:20 +00:00
Nick Mathewson
e9564eceb3 r16487@catbus: nickm | 2007-11-06 22:38:44 -0500
Remove rtsig method, as discussed in July.  It hasn't compiled for quite a while, and nobody has seemed to miss it much.  Please let us know if this was a bad call. [Tracker issue 1826539].


svn:r485
2007-11-07 03:40:26 +00:00
Nick Mathewson
81802bf98c r16473@catbus: nickm | 2007-11-06 15:55:35 -0500
Increment MAX_ADDRS in evdns so as to be quite large.  This is not as good as a general solution, but it may be good enough for practical use.


svn:r479
2007-11-06 20:57:37 +00:00
Nick Mathewson
d257a4c0d6 r16454@catbus: nickm | 2007-11-06 09:59:45 -0500
Small code cleanups in epoll_dispatch(): remove a needless variable and some redundant conditionals.


svn:r478
2007-11-06 20:57:32 +00:00
Nick Mathewson
d7d91461c8 r14732@tombo: nickm | 2007-11-05 22:03:28 -0500
Quick hack to make evhttp.h build when there is no TAILQ to be found.  Based on patch from Paul Fisher.  We could perhaps do this more elegantly, but it _does_ need to be done.


svn:r475
2007-11-06 03:04:49 +00:00
Nick Mathewson
1bcb112b20 r14698@tombo: nickm | 2007-11-03 22:20:23 -0400
Use libtool versioning correctly. Add comment to Makefile.am explaining how to keep this working.


svn:r472
2007-11-04 02:21:31 +00:00
Niels Provos
881731028b split libevent into two extra libraries libevent_core and libevent_extra
svn:r469
2007-11-03 23:45:38 +00:00
Niels Provos
1d3a008af3 provide hooks for outgoing pools; associate a base with a pool
svn:r468
2007-11-03 22:51:26 +00:00
Niels Provos
30ae40cc52 switch timeouts to a min heap; from Maxim Yegorushkin
svn:r467
2007-11-03 18:04:53 +00:00
Niels Provos
65236aa857 simple hooks for processing incoming and outgoing rpcs
svn:r466
2007-11-02 06:34:04 +00:00
Niels Provos
18ac92486f Solaris event port improvements
svn:r464
2007-10-27 17:50:07 +00:00
Nick Mathewson
49ede3be00 r15517@catbus: nickm | 2007-10-03 13:14:05 -0400
Correct the pointer manipulation in fake_getaddrinfo(), and do the right thing for fake_getaddrinfo(NULL,&ai).  Based on a patch by Lubmir Marinov, hacked until the unit tests passed on Linux with #undef HAVE_GETADDRINFO.


svn:r459
2007-10-03 17:19:22 +00:00
Nick Mathewson
bc7b7c249c Fix implementation of strsep.
svn:r457
2007-10-03 04:14:54 +00:00
Nick Mathewson
4ed4867375 r15496@catbus: nickm | 2007-10-02 15:06:22 -0400
Move end of "extern C {" block to the end of evdns.h.


svn:r456
2007-10-02 19:11:41 +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
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
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
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
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
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
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
98f9616bf4 support setting local address on an evhttp_connection
svn:r416
2007-09-07 02:49:46 +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
9a99bab0db let's try to keep a log of changes; as suggested by Nick
svn:r401
2007-08-23 15:36:38 +00:00