Log

Author Commit Date CI Message
Niels Provos 3c1a6a68 2007-09-23T03:49:28 first attempts at refactoring this code to make it more readable; mostly changing to dictionaries for format strings svn:r450
Niels Provos a4cc3d14 2007-09-22T23:57:11 rename the rpc member from kill to attack; that way the structure does not have the same name. might find some bugs. svn:r449
Nick Mathewson db43c1e1 2007-09-20T19:36:03 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
Nick Mathewson 1e1f77c5 2007-09-20T19:08:20 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
Nick Mathewson d85bce4e 2007-09-20T18:38:31 Remove gratuitous tor-isms in evutil_socketpair(); fix a windows warning in http.c. svn:r446
Nick Mathewson f4c84e86 2007-09-20T18:27:01 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
Nick Mathewson 5a0d671f 2007-09-20T18:26:56 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
Nick Mathewson 8b256b8e 2007-09-20T18:26:51 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
Nick Mathewson f0e06d75 2007-09-20T18:26:46 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
Nick Mathewson 25007183 2007-09-20T18:26:40 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
Nick Mathewson 626cc5f9 2007-09-19T15:27:53 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
Nick Mathewson 7f57289f 2007-09-18T15:16:23 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
Nick Mathewson 47ed792c 2007-09-18T15:16:17 r15102@catbus: nickm | 2007-09-18 11:12:43 -0400 Make the autogen.sh script executable. svn:r438
Nick Mathewson d69a4c9e 2007-09-18T15:12:20 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
Nick Mathewson 7135ffb6 2007-09-18T15:12:09 r15096@catbus: nickm | 2007-09-18 11:02:12 -0400 Add Doxygen documentation to header files; patch from Mark Heily. svn:r436
Nick Mathewson c895ee46 2007-09-18T15:11:53 r15094@catbus: nickm | 2007-09-18 10:52:11 -0400 Patch from Christopher Lane: Make regress.gen.* buildable from outside source directory. svn:r434
Niels Provos 7b7742fc 2007-09-16T02:26:37 optimize by removing a variable svn:r433
Nick Mathewson bfd27f58 2007-09-15T18:45:57 r15086@catbus: nickm | 2007-09-15 14:42:55 -0400 Patch from Trond Norbye: Fix two solaris bugs. svn:r432
Niels Provos b835ee08 2007-09-15T15:50:11 fix http.c to compile properly with USE_DEBUG; from Christopher Layne svn:r430
Niels Provos 640c61ba 2007-09-15T00:53:47 deal with out of memory situations for realloc svn:r429
Nick Mathewson 82153e6e 2007-09-10T14:56:00 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 8b392549 2007-09-10T14:55:55 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 c396c767 2007-09-10T14:55:50 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 fc1211ed 2007-09-10T01:37:57 fix another memory leak svn:r424
Niels Provos 7c66bf33 2007-09-10T01:30:11 fix a memory leak in the dns server; found by valgrind svn:r422
Niels Provos babd622f 2007-09-09T03:10:16 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 e2f56411 2007-09-09T02:33:10 Fix a memory leak in which failed HTTP connections whould not free the request object svn:r419
Niels Provos 8ee20a3f 2007-09-09T02:15:34 fix memory leaks/unitialized memory found by valgrind svn:r418
Niels Provos e678f009 2007-09-09T01:46:35 fix a couple memory leaks; time buffer marshaling svn:r417
Niels Provos 98f9616b 2007-09-07T02:49:46 support setting local address on an evhttp_connection svn:r416
Nick Mathewson 23866b76 2007-09-07T01:18:53 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 003698c0 2007-09-07T01:03:01 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 8d5ef326 2007-09-07T01:02:56 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 9c3ac4e4 2007-09-07T00:10:15 r14970@catbus: nickm | 2007-09-06 20:09:39 -0400 Fix compilation on Solaris; Patch from Magne Mahre. svn:r409
Niels Provos ff9e1af6 2007-09-02T01:33:38 demote most warnings to debug messages; execute callback later to allow freeing of connection object svn:r407
Niels Provos 11a0a9e4 2007-08-25T18:47:22 allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr. svn:r406
Niels Provos 49e01ff7 2007-08-25T18:42:42 include event.h in evhttp.h; found by Charles Kerr svn:r404
Nick Mathewson 5f04e3b7 2007-08-24T01:08:39 Bump version number in svn trunk to 1.3.99. svn:r403
Niels Provos 9a99bab0 2007-08-23T15:36:38 let's try to keep a log of changes; as suggested by Nick svn:r401
Nick Mathewson a36d4a93 2007-08-20T14:44:15 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 41c69fc3 2007-08-19T17:26:02 fix typo in comments svn:r399
Nick Mathewson 3d2320b2 2007-08-19T17:25:52 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 67947ce3 2007-08-19T02:41:23 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 35983cd6 2007-08-16T21:12:53 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 12fe087e 2007-08-10T16:37:33 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 7d821580 2007-08-10T16:31:02 Fix compile warning on osx: the udata field in struct kevent is supposed to be void*, not intptr_t. svn:r387
Nick Mathewson 21a7e7ed 2007-08-10T15:59:31 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 cd6dd951 2007-08-06T21:00:49 add a proper test for filtering new lines in headers svn:r384
Niels Provos 073d3590 2007-08-06T20:53:33 fix an embarassing bug where strchr was used with a cstring instead of a char svn:r383
Niels Provos 8ea5ffef 2007-08-05T02:15:10 request dispatching fix from Elliot Foster svn:r382
Niels Provos b7ff0248 2007-07-31T00:32:00 fix memory leak; found by Elliot F svn:r378
Niels Provos 5e0ac7f2 2007-07-31T00:25:22 check for sys/select.h svn:r377
Niels Provos aa106169 2007-07-31T00:21:04 use AM_CLFAGS from Jan Kneschke svn:r376
Niels Provos 9e0333a8 2007-07-30T23:56:05 include config.h if HAVE_CONFIG_H from Jan Kneschke svn:r375
Niels Provos 72c479e7 2007-07-30T23:54:25 remove c99 variable declarations; from Jan Kneschke svn:r374
Niels Provos 7c6df310 2007-07-30T23:53:10 remove c++ comments from Jan Kneschke svn:r373
Niels Provos 10267216 2007-07-30T23:49:00 initalize ev_res from Scott Lamb svn:r372
Niels Provos 3ad6b47e 2007-07-30T22:41:00 make clock_monotonic work; do not use default timeout; from Scott Lamb, plus some fixes from me. svn:r371
Niels Provos d7918e79 2007-07-30T21:27:33 drop illegal header values svn:r370
Niels Provos b15d715c 2007-07-06T03:36:31 make event_rpcgen.py use the uint_ types; make event.h include stdint.h (wonder which OS that will break) svn:r369
Niels Provos 753ffa56 2007-06-30T19:08:46 convert u_int8_t types to uint8_t types svn:r368
Niels Provos f0ff792a 2007-06-30T18:58:34 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 aa5c8068 2007-06-16T03:23:15 make it compile on solaris; from Andrei Nigmatulin svn:r366
Niels Provos d1848a88 2007-06-14T04:38:42 include config.h svn:r365
Niels Provos cf5c1fce 2007-06-08T16:06:23 made the wrong fd non-blocking in accept_socket; from szjwwu svn:r364
Niels Provos 3794534f 2007-05-29T05:38:58 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 f0d0559c 2007-05-28T21:21:59 allow DNS server to get access to the IP address for the requestor; from tor cvs via Nick Mathewson svn:r362
Niels Provos 5d3b6a83 2007-05-28T21:20:57 fail quicker on bad replies; from tor cvs via Nick Mathewson svn:r361
Niels Provos d06ab856 2007-05-28T21:19:18 fix bug where req was freed and dereferenced afterwards; from tor cvs via Nick Mathewson svn:r360
Niels Provos 28246587 2007-05-28T21:17:35 treat SERVERFAILED as a timeout; from tor cvs via Nick Mathewson svn:r359
Niels Provos 5be24333 2007-05-28T21:09:00 solaris may return short reads on resolve.conf; fix from tor cvs via Nick Mathewson svn:r358
Niels Provos d0111a29 2007-05-27T06:27:11 evdns_shutdown fix from Adam Langley svn:r357
Niels Provos 621a1b29 2007-05-23T05:31:33 support freeing of evrpc base svn:r356
Niels Provos 0c280824 2007-05-23T05:20:59 support removing of http callbacks and removing of registered RPCs svn:r355
Niels Provos 5b5400f6 2007-05-12T06:23:52 permit connection free from callback; from Ben Rigas svn:r354
Niels Provos 4408a5f8 2007-04-19T03:13:12 fix evbuffer_find off by one; found by Ken Cox; regression test by him and fix by me svn:r353
Niels Provos f5aa65c9 2007-03-22T15:09:30 man page fixes from todd miller svn:r352
Niels Provos 41b7cbc3 2007-03-10T06:37:53 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 a968da74 2007-03-06T06:26:10 split finding of callbacks out of code svn:r350
Niels Provos 50edb19f 2007-03-05T07:28:15 EVRPC_MAKE_REQUEST needs the pool argument svn:r349
Niels Provos fcd55934 2007-03-05T06:49:45 spell Oleson correctly svn:r348
Niels Provos 729487de 2007-03-03T08:27:52 better conversion; cannot use event_err here. svn:r344
Niels Provos 66066251 2007-03-03T08:18:20 proper casting for conversion svn:r343
Niels Provos 74f7118d 2007-03-03T08:16:40 install evrpc.h header svn:r342
Niels Provos b5d2f9a2 2007-03-01T06:25:18 rolling back r339: evconfig.h does not work svn:r341
Niels Provos 8d94bd03 2007-02-28T04:29:18 signal fixes from scott lamb svn:r340
Niels Provos 127c260b 2007-02-28T04:02:29 make evconfig.h available as installed header file; not really ideal but good enough for me; from Nick Mathewson svn:r339
Niels Provos 995a58a3 2007-02-27T08:16:50 missing return (-1) for failures on make_socket svn:r338
Niels Provos f86cead0 2007-02-24T08:33:07 remove artifical 16-bit restriction on evrpc entries svn:r337
Niels Provos 4356b681 2007-02-20T03:35:31 remove redundant \n from event_warn svn:r336
Niels Provos 72a3f29d 2007-02-18T19:33:19 1.3a on trunk? svn:r333
Niels Provos 06d0f8c0 2007-02-16T08:48:55 O(n^2) is bad svn:r332
Niels Provos 73987902 2007-02-15T22:46:04 missing reference to strlcpy-internal svn:r330
Niels Provos fe266238 2007-02-15T02:16:07 try to make it work with proxy-connections svn:r329
Niels Provos 58f42c79 2007-02-14T16:59:47 fix handling of chunked requests svn:r328
Niels Provos 8901c141 2007-02-14T06:10:32 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 36950cef 2007-02-13T06:25:16 close connections for http/1.0 unless there is keep-alive svn:r326
Niels Provos 19373b3d 2007-02-13T06:14:42 when parsing query parameters, we automatically unquote them svn:r325
Niels Provos 9a65d013 2007-02-11T07:58:39 set content length even if content-type is specified svn:r324
Niels Provos ba748012 2007-02-09T07:52:04 add prototype for bufferevent_base_set; from thorsten glaser svn:r323