]> granicus.if.org Git - libevent/log
libevent
17 years agodebug cleanups in signal.c; from Christopher Layne
Niels Provos [Tue, 13 Nov 2007 17:36:58 +0000 (17:36 +0000)]
debug cleanups in signal.c; from Christopher Layne

svn:r527

17 years agofree minheap; from Christopher Layne
Niels Provos [Tue, 13 Nov 2007 03:32:10 +0000 (03:32 +0000)]
free minheap; from Christopher Layne

svn:r525

17 years agoclean up event-config.h to fix make distcheck; from sourceforge tracker
Niels Provos [Mon, 12 Nov 2007 07:34:29 +0000 (07:34 +0000)]
clean up event-config.h to fix make distcheck; from sourceforge tracker

svn:r521

17 years agoWe do not need to specially remove a timeout before calling event_del; patch from...
Niels Provos [Mon, 12 Nov 2007 06:54:35 +0000 (06:54 +0000)]
We do not need to specially remove a timeout before calling event_del; patch from Christopher Layne.

svn:r519

17 years agosrcdir for verify; from Christopher Layne
Niels Provos [Mon, 12 Nov 2007 05:34:10 +0000 (05:34 +0000)]
srcdir for verify; from Christopher Layne

svn:r516

17 years agostick autogen.sh into EXTRA_DIST
Niels Provos [Mon, 12 Nov 2007 02:44:02 +0000 (02:44 +0000)]
stick autogen.sh into EXTRA_DIST

svn:r515

17 years agowe no longer need acconfig.h
Niels Provos [Mon, 12 Nov 2007 02:32:35 +0000 (02:32 +0000)]
we no longer need acconfig.h

svn:r510

17 years agoMake the logic for active events work better with internal events; patch from Christo...
Niels Provos [Mon, 12 Nov 2007 02:31:07 +0000 (02:31 +0000)]
Make the logic for active events work better with internal events; patch from Christopher Layne

svn:r509

17 years agorevert r505; it introduced errors in epoll
Niels Provos [Sun, 11 Nov 2007 03:05:03 +0000 (03:05 +0000)]
revert r505; it introduced errors in epoll

svn:r508

17 years ago r16588@catbus: nickm | 2007-11-10 02:47:14 -0500
Nick Mathewson [Sat, 10 Nov 2007 07:49:13 +0000 (07:49 +0000)]
 r16588@catbus:  nickm | 2007-11-10 02:47:14 -0500
 Another include for sample.  Patch from Christopher Layne.

svn:r507

17 years ago r16585@catbus: nickm | 2007-11-10 00:16:11 -0500
Nick Mathewson [Sat, 10 Nov 2007 05:18:17 +0000 (05:18 +0000)]
 r16585@catbus:  nickm | 2007-11-10 00:16:11 -0500
 Patch from Christopher Layne: Make event_del() restore previous signal handlers, not the default.

svn:r506

17 years ago r16584@catbus: nickm | 2007-11-10 00:00:59 -0500
Nick Mathewson [Sat, 10 Nov 2007 05:18:11 +0000 (05:18 +0000)]
 r16584@catbus:  nickm | 2007-11-10 00:00:59 -0500
 Patch from Christopher Lane: reduce branch count in epoll_dispatch.c and generally improve clarity.

svn:r505

17 years ago r16578@catbus: nickm | 2007-11-08 12:34:51 -0500
Nick Mathewson [Thu, 8 Nov 2007 17:36:28 +0000 (17:36 +0000)]
 r16578@catbus:  nickm | 2007-11-08 12:34:51 -0500
 The == operator in shell is a bash-ism; do not use it in autogen.sh

svn:r503

17 years ago r16556@catbus: nickm | 2007-11-07 17:55:39 -0500
Nick Mathewson [Wed, 7 Nov 2007 22:57:08 +0000 (22:57 +0000)]
 r16556@catbus:  nickm | 2007-11-07 17:55:39 -0500
 MSVC6 does not seem to define a useful "what is the name of this function" macro

svn:r502

17 years ago r16554@catbus: nickm | 2007-11-07 17:33:49 -0500
Nick Mathewson [Wed, 7 Nov 2007 22:35:15 +0000 (22:35 +0000)]
 r16554@catbus:  nickm | 2007-11-07 17:33:49 -0500
 Mention autogen.sh in the README, now that we are more vocally encouraging people to try svn.

svn:r501

17 years ago r16544@catbus: nickm | 2007-11-07 16:12:37 -0500
Nick Mathewson [Wed, 7 Nov 2007 21:14:04 +0000 (21:14 +0000)]
 r16544@catbus:  nickm | 2007-11-07 16:12:37 -0500
 Oops; forgot the log entry.

svn:r500

17 years agoMake all the C files in the libraries compile under MSVC 2005 Express. There are...
Nick Mathewson [Wed, 7 Nov 2007 21:01:26 +0000 (21:01 +0000)]
Make all the C files in the libraries compile under MSVC 2005 Express.  There are still a few warnings, and probably some subtle issues, but it's better than nothing.

svn:r499

17 years ago r16510@catbus: nickm | 2007-11-07 02:29:42 -0500
Nick Mathewson [Wed, 7 Nov 2007 07:33:36 +0000 (07:33 +0000)]
 r16510@catbus:  nickm | 2007-11-07 02:29:42 -0500
 Try not to shadow local variables or function arguments.

svn:r498

17 years ago r16509@catbus: nickm | 2007-11-07 02:08:32 -0500
Nick Mathewson [Wed, 7 Nov 2007 07:33:31 +0000 (07:33 +0000)]
 r16509@catbus:  nickm | 2007-11-07 02:08:32 -0500
 Stop using C++ style comments.

svn:r497

17 years ago r16508@catbus: nickm | 2007-11-07 02:01:03 -0500
Nick Mathewson [Wed, 7 Nov 2007 07:33:26 +0000 (07:33 +0000)]
 r16508@catbus:  nickm | 2007-11-07 02:01:03 -0500
 Note a dubious point in http.c

svn:r496

17 years ago r16507@catbus: nickm | 2007-11-07 01:34:55 -0500
Nick Mathewson [Wed, 7 Nov 2007 07:33:21 +0000 (07:33 +0000)]
 r16507@catbus:  nickm | 2007-11-07 01:34:55 -0500
 Never assign a string constant to a non-const char *.

svn:r495

17 years ago r16506@catbus: nickm | 2007-11-07 01:29:59 -0500
Nick Mathewson [Wed, 7 Nov 2007 07:33:16 +0000 (07:33 +0000)]
 r16506@catbus:  nickm | 2007-11-07 01:29:59 -0500
 Make all rpc and http functions not prototyped in evrpc.h and evhttp.h into static functions.  I believe that these functions were meant to be private, yes?

svn:r494

17 years agoRemove spurious #include <sys/tree.h> in win32.c.
Nick Mathewson [Wed, 7 Nov 2007 06:07:54 +0000 (06:07 +0000)]
Remove spurious #include <sys/tree.h> in win32.c.

svn:r493

17 years ago r16501@catbus: nickm | 2007-11-07 01:00:31 -0500
Nick Mathewson [Wed, 7 Nov 2007 06:01:57 +0000 (06:01 +0000)]
 r16501@catbus:  nickm | 2007-11-07 01:00:31 -0500
 This is one of those patches which will either make matters far
 simpler after the bugs shake out, or will get reverted pretty quick
 once we realize that it is a stupid idea.

 We now post-process the config.h file into a new event-config.h file,
 whose macros are prefixed with _EVENT_ and which is thus safe for
 headers to include.  Using this, we can define replacement timeval
 manipulation functions in evutil.h, and use them uniformly through our
 code.  We can also detect which headers are needful in event.h, and
 include them as required.

 This is also the perfect time to remove the long-deprecated acconfig.h
 file, so that autoheader no longer warns.

 Should resolve the following issues:

 [ 1826530 ] Header files should have access to autoconf output.
 [ 1826545 ] acconfig.h is deprecated.
 [ 1826564 ] On some platforms, event.h can't be included alone.

svn:r492

17 years ago r16500@catbus: nickm | 2007-11-07 00:27:44 -0500
Nick Mathewson [Wed, 7 Nov 2007 06:01:45 +0000 (06:01 +0000)]
 r16500@catbus:  nickm | 2007-11-07 00:27:44 -0500
 Remove from the (deprecated) acconfig.h file stubs that are already generated by autoheader.

svn:r491

17 years ago r16497@catbus: nickm | 2007-11-07 00:01:02 -0500
Nick Mathewson [Wed, 7 Nov 2007 05:02:21 +0000 (05:02 +0000)]
 r16497@catbus:  nickm | 2007-11-07 00:01:02 -0500
 Resolve issue 1826588: make event_base_free() succeed even if there are pending non-INTERNAL events still in the base.  This can leak memory and fds if used injudiciously, but at least it no longer crashes.

svn:r490

17 years ago r16496@catbus: nickm | 2007-11-06 23:58:52 -0500
Nick Mathewson [Wed, 7 Nov 2007 05:02:14 +0000 (05:02 +0000)]
 r16496@catbus:  nickm | 2007-11-06 23:58:52 -0500
 Clarify some doxygen in event.h

svn:r489

17 years ago r16492@catbus: nickm | 2007-11-06 23:27:32 -0500
Nick Mathewson [Wed, 7 Nov 2007 04:28:54 +0000 (04:28 +0000)]
 r16492@catbus:  nickm | 2007-11-06 23:27:32 -0500
 Fix unit tests so that an outdated nameserver means "Skip IPv6 tests", not "Abort."

svn:r487

17 years ago r16489@catbus: nickm | 2007-11-06 22:51:05 -0500
Nick Mathewson [Wed, 7 Nov 2007 03:52:20 +0000 (03:52 +0000)]
 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

17 years ago r16487@catbus: nickm | 2007-11-06 22:38:44 -0500
Nick Mathewson [Wed, 7 Nov 2007 03:40:26 +0000 (03:40 +0000)]
 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

17 years agoremove tree.h from EXTRA_DIST; from Charles Kerr
Niels Provos [Wed, 7 Nov 2007 03:25:03 +0000 (03:25 +0000)]
remove tree.h from EXTRA_DIST; from Charles Kerr

svn:r484

17 years ago r14744@tombo: nickm | 2007-11-06 21:30:11 -0500
Nick Mathewson [Wed, 7 Nov 2007 02:30:17 +0000 (02:30 +0000)]
 r14744@tombo:  nickm | 2007-11-06 21:30:11 -0500
 Fix coding error: patch from Charles Kerr.

svn:r483

17 years agomake event_init should return struct event_base *
Niels Provos [Wed, 7 Nov 2007 01:48:44 +0000 (01:48 +0000)]
make event_init should return struct event_base *

svn:r481

17 years ago r16473@catbus: nickm | 2007-11-06 15:55:35 -0500
Nick Mathewson [Tue, 6 Nov 2007 20:57:37 +0000 (20:57 +0000)]
 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

17 years ago r16454@catbus: nickm | 2007-11-06 09:59:45 -0500
Nick Mathewson [Tue, 6 Nov 2007 20:57:32 +0000 (20:57 +0000)]
 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

17 years ago r14732@tombo: nickm | 2007-11-05 22:03:28 -0500
Nick Mathewson [Tue, 6 Nov 2007 03:04:49 +0000 (03:04 +0000)]
 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

17 years agoimprove doxygen documentation
Niels Provos [Sun, 4 Nov 2007 06:35:29 +0000 (06:35 +0000)]
improve doxygen documentation

svn:r473

17 years ago r14698@tombo: nickm | 2007-11-03 22:20:23 -0400
Nick Mathewson [Sun, 4 Nov 2007 02:21:31 +0000 (02:21 +0000)]
 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

17 years agoremove last vestiges of RBTREE
Niels Provos [Sat, 3 Nov 2007 23:54:27 +0000 (23:54 +0000)]
remove last vestiges of RBTREE

svn:r471

17 years agoremove last vestiges of RBTREE
Niels Provos [Sat, 3 Nov 2007 23:53:49 +0000 (23:53 +0000)]
remove last vestiges of RBTREE

svn:r470

17 years agosplit libevent into two extra libraries libevent_core and libevent_extra
Niels Provos [Sat, 3 Nov 2007 23:45:38 +0000 (23:45 +0000)]
split libevent into two extra libraries libevent_core and libevent_extra

svn:r469

17 years agoprovide hooks for outgoing pools; associate a base with a pool
Niels Provos [Sat, 3 Nov 2007 22:51:26 +0000 (22:51 +0000)]
provide hooks for outgoing pools; associate a base with a pool

svn:r468

17 years agoswitch timeouts to a min heap; from Maxim Yegorushkin
Niels Provos [Sat, 3 Nov 2007 18:04:53 +0000 (18:04 +0000)]
switch timeouts to a min heap; from Maxim Yegorushkin

svn:r467

17 years agosimple hooks for processing incoming and outgoing rpcs
Niels Provos [Fri, 2 Nov 2007 06:34:04 +0000 (06:34 +0000)]
simple hooks for processing incoming and outgoing rpcs

svn:r466

17 years agoSolaris event port improvements
Niels Provos [Sat, 27 Oct 2007 17:50:07 +0000 (17:50 +0000)]
Solaris event port improvements

svn:r464

17 years ago r15922@catbus: nickm | 2007-10-18 13:48:46 -0400
Nick Mathewson [Thu, 18 Oct 2007 17:49:52 +0000 (17:49 +0000)]
 r15922@catbus:  nickm | 2007-10-18 13:48:46 -0400
 Patch to event.3 from Christopher Lane.

svn:r463

17 years agoInstead of read/write in regress.c, use send/recv. Now all of the win32 regression...
Nick Mathewson [Fri, 12 Oct 2007 18:02:56 +0000 (18:02 +0000)]
Instead of read/write in regress.c, use send/recv.  Now all of the win32 regression tests pass, except for http and rpc.

svn:r461

17 years agoFix evutil code to use correct EVUTIL_SET_SOCKET_ERROR macro.
Nick Mathewson [Fri, 12 Oct 2007 17:55:37 +0000 (17:55 +0000)]
Fix evutil code to use correct EVUTIL_SET_SOCKET_ERROR macro.

svn:r460

17 years ago r15517@catbus: nickm | 2007-10-03 13:14:05 -0400
Nick Mathewson [Wed, 3 Oct 2007 17:19:22 +0000 (17:19 +0000)]
 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

17 years agoFix implementation of strsep.
Nick Mathewson [Wed, 3 Oct 2007 04:14:54 +0000 (04:14 +0000)]
Fix implementation of strsep.

svn:r457

17 years ago r15496@catbus: nickm | 2007-10-02 15:06:22 -0400
Nick Mathewson [Tue, 2 Oct 2007 19:11:41 +0000 (19:11 +0000)]
 r15496@catbus:  nickm | 2007-10-02 15:06:22 -0400
 Move end of "extern C {" block to the end of evdns.h.

svn:r456

17 years ago r15331@catbus: nickm | 2007-09-25 11:46:52 -0400
Nick Mathewson [Tue, 25 Sep 2007 15:50:50 +0000 (15:50 +0000)]
 r15331@catbus:  nickm | 2007-09-25 11:46:52 -0400
 Add EVPORT to test.sh script.  Patch from Trond Norbye.

svn:r454

17 years ago r15324@catbus: nickm | 2007-09-24 12:22:21 -0400
Nick Mathewson [Mon, 24 Sep 2007 16:26:11 +0000 (16:26 +0000)]
 r15324@catbus:  nickm | 2007-09-24 12:22:21 -0400
 New evutil.h macros to manipulate winsock errors.  Use them in http.c and in evutil_socketpair().

svn:r451

17 years agofirst attempts at refactoring this code to make it more readable;
Niels Provos [Sun, 23 Sep 2007 03:49:28 +0000 (03:49 +0000)]
first attempts at refactoring this code to make it more readable;
mostly changing to dictionaries for format strings

svn:r450

17 years agorename the rpc member from kill to attack; that way the
Niels Provos [Sat, 22 Sep 2007 23:57:11 +0000 (23:57 +0000)]
rename the rpc member from kill to attack; that way the
structure does not have the same name.  might find some
bugs.

svn:r449

17 years agoOn win32, sockets apparently can't be used with ReadFile and WriteFile: You need...
Nick Mathewson [Thu, 20 Sep 2007 19:36:03 +0000 (19:36 +0000)]
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

17 years agoMake the test/ subdirectory buildable under Windows. Well, mingw at least. The...
Nick Mathewson [Thu, 20 Sep 2007 19:08:20 +0000 (19:08 +0000)]
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

17 years agoRemove gratuitous tor-isms in evutil_socketpair(); fix a windows warning in http.c.
Nick Mathewson [Thu, 20 Sep 2007 18:38:31 +0000 (18:38 +0000)]
Remove gratuitous tor-isms in evutil_socketpair(); fix a windows warning in http.c.

svn:r446

17 years ago r15220@catbus: nickm | 2007-09-20 14:22:57 -0400
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.

svn:r445

17 years ago r15219@catbus: nickm | 2007-09-20 14:17:32 -0400
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.

svn:r444

17 years ago r15218@catbus: nickm | 2007-09-20 14:14:05 -0400
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.

svn:r443

17 years ago r15217@catbus: nickm | 2007-09-20 14:04:32 -0400
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().

svn:r442

17 years ago r15216@catbus: nickm | 2007-09-20 13:58:23 -0400
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()

svn:r441

17 years ago r15168@catbus: nickm | 2007-09-19 11:24:30 -0400
Nick Mathewson [Wed, 19 Sep 2007 15:27:53 +0000 (15:27 +0000)]
 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

17 years ago r15103@catbus: nickm | 2007-09-18 11:13:09 -0400
Nick Mathewson [Tue, 18 Sep 2007 15:16:23 +0000 (15:16 +0000)]
 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

17 years ago r15102@catbus: nickm | 2007-09-18 11:12:43 -0400
Nick Mathewson [Tue, 18 Sep 2007 15:16:17 +0000 (15:16 +0000)]
 r15102@catbus:  nickm | 2007-09-18 11:12:43 -0400
 Make the autogen.sh script executable.

svn:r438

17 years ago r15097@catbus: nickm | 2007-09-18 11:08:42 -0400
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.

svn:r437

17 years ago r15096@catbus: nickm | 2007-09-18 11:02:12 -0400
Nick Mathewson [Tue, 18 Sep 2007 15:12:09 +0000 (15:12 +0000)]
 r15096@catbus:  nickm | 2007-09-18 11:02:12 -0400
 Add Doxygen documentation to header files; patch from Mark Heily.

svn:r436

17 years ago r15094@catbus: nickm | 2007-09-18 10:52:11 -0400
Nick Mathewson [Tue, 18 Sep 2007 15:11:53 +0000 (15:11 +0000)]
 r15094@catbus:  nickm | 2007-09-18 10:52:11 -0400
 Patch from Christopher Lane: Make regress.gen.* buildable from outside source directory.

svn:r434

17 years agooptimize by removing a variable
Niels Provos [Sun, 16 Sep 2007 02:26:37 +0000 (02:26 +0000)]
optimize by removing a variable

svn:r433

17 years ago r15086@catbus: nickm | 2007-09-15 14:42:55 -0400
Nick Mathewson [Sat, 15 Sep 2007 18:45:57 +0000 (18:45 +0000)]
 r15086@catbus:  nickm | 2007-09-15 14:42:55 -0400
 Patch from Trond Norbye: Fix two solaris bugs.

svn:r432

17 years agofix http.c to compile properly with USE_DEBUG; from Christopher Layne
Niels Provos [Sat, 15 Sep 2007 15:50:11 +0000 (15:50 +0000)]
fix http.c to compile properly with USE_DEBUG; from Christopher Layne

svn:r430

17 years agodeal with out of memory situations for realloc
Niels Provos [Sat, 15 Sep 2007 00:53:47 +0000 (00:53 +0000)]
deal with out of memory situations for realloc

svn:r429

17 years ago r15025@catbus: nickm | 2007-09-10 10:54:46 -0400
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.

svn:r428

17 years ago r15024@catbus: nickm | 2007-09-10 10:49:15 -0400
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".

svn:r427

17 years ago r15023@catbus: nickm | 2007-09-10 10:46:16 -0400
Nick Mathewson [Mon, 10 Sep 2007 14:55:50 +0000 (14:55 +0000)]
 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

17 years agofix another memory leak
Niels Provos [Mon, 10 Sep 2007 01:37:57 +0000 (01:37 +0000)]
fix another memory leak

svn:r424

17 years agofix a memory leak in the dns server; found by valgrind
Niels Provos [Mon, 10 Sep 2007 01:30:11 +0000 (01:30 +0000)]
fix a memory leak in the dns server; found by valgrind

svn:r422

17 years agomake allocating array members in event_rpcgen more efficient, but doubling the size of
Niels Provos [Sun, 9 Sep 2007 03:10:16 +0000 (03:10 +0000)]
make allocating array members in event_rpcgen more efficient, but doubling the size of
available slots every time we run out.

svn:r421

17 years agoFix a memory leak in which failed HTTP connections whould not free the request object
Niels Provos [Sun, 9 Sep 2007 02:33:10 +0000 (02:33 +0000)]
Fix a memory leak in which failed HTTP connections whould not free the request object

svn:r419

17 years agofix memory leaks/unitialized memory found by valgrind
Niels Provos [Sun, 9 Sep 2007 02:15:34 +0000 (02:15 +0000)]
fix memory leaks/unitialized memory found by valgrind

svn:r418

17 years agofix a couple memory leaks; time buffer marshaling
Niels Provos [Sun, 9 Sep 2007 01:46:35 +0000 (01:46 +0000)]
fix a couple memory leaks; time buffer marshaling

svn:r417

17 years agosupport setting local address on an evhttp_connection
Niels Provos [Fri, 7 Sep 2007 02:49:46 +0000 (02:49 +0000)]
support setting local address on an evhttp_connection

svn:r416

17 years agoAnother tweak on the date patch: win32 has no gmtime_r, but its gmtime() function...
Nick Mathewson [Fri, 7 Sep 2007 01:18:53 +0000 (01:18 +0000)]
Another tweak on the date patch: win32 has no gmtime_r, but its gmtime() function uses thread-local storage for safety.  Backportable.

svn:r414

17 years ago r14975@catbus: nickm | 2007-09-06 21:00:38 -0400
Nick Mathewson [Fri, 7 Sep 2007 01:03:01 +0000 (01:03 +0000)]
 r14975@catbus:  nickm | 2007-09-06 21:00:38 -0400
 Oops; we were already including sys/time.h.  Remove the redundant include.

svn:r413

17 years ago r14974@catbus: nickm | 2007-09-06 20:59:14 -0400
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.

svn:r412

17 years ago r14970@catbus: nickm | 2007-09-06 20:09:39 -0400
Nick Mathewson [Fri, 7 Sep 2007 00:10:15 +0000 (00:10 +0000)]
 r14970@catbus:  nickm | 2007-09-06 20:09:39 -0400
 Fix compilation on Solaris; Patch from Magne Mahre.

svn:r409

17 years agodemote most warnings to debug messages;
Niels Provos [Sun, 2 Sep 2007 01:33:38 +0000 (01:33 +0000)]
demote most warnings to debug messages;
execute callback later to allow freeing of connection object

svn:r407

17 years agoallow \r or \n individually to separate HTTP headers instead of
Niels Provos [Sat, 25 Aug 2007 18:47:22 +0000 (18:47 +0000)]
allow \r or \n individually to separate HTTP headers instead of
the standard "\r\n"; from Charles Kerr.

svn:r406

17 years agoinclude event.h in evhttp.h; found by Charles Kerr
Niels Provos [Sat, 25 Aug 2007 18:42:42 +0000 (18:42 +0000)]
include event.h in evhttp.h; found by Charles Kerr

svn:r404

17 years agoBump version number in svn trunk to 1.3.99.
Nick Mathewson [Fri, 24 Aug 2007 01:08:39 +0000 (01:08 +0000)]
Bump version number in svn trunk to 1.3.99.

svn:r403

17 years agolet's try to keep a log of changes; as suggested by Nick
Niels Provos [Thu, 23 Aug 2007 15:36:38 +0000 (15:36 +0000)]
let's try to keep a log of changes; as suggested by Nick

svn:r401

17 years ago r14699@catbus: nickm | 2007-08-20 10:42:57 -0400
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.

svn:r400

17 years agofix typo in comments
Niels Provos [Sun, 19 Aug 2007 17:26:02 +0000 (17:26 +0000)]
fix typo in comments

svn:r399

17 years ago r14697@catbus: nickm | 2007-08-19 13:24:39 -0400
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.

svn:r398

17 years agoprovide evhttp_new and evhttp_bind_socket instead of evhttp_start;
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.

svn:r397

17 years ago r14618@catbus: nickm | 2007-08-16 17:11:47 -0400
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.

svn:r395

17 years ago r14505@catbus: nickm | 2007-08-10 12:35:52 -0400
Nick Mathewson [Fri, 10 Aug 2007 16:37:33 +0000 (16:37 +0000)]
 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

17 years agoFix compile warning on osx: the udata field in struct kevent is supposed to be void...
Nick Mathewson [Fri, 10 Aug 2007 16:31:02 +0000 (16:31 +0000)]
Fix compile warning on osx: the udata field in struct kevent is supposed to be void*, not intptr_t.

svn:r387

17 years ago r14498@catbus: nickm | 2007-08-10 11:58:32 -0400
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.

svn:r385