]> granicus.if.org Git - libevent/log
libevent
13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Sun, 12 Feb 2012 02:20:47 +0000 (21:20 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoTweak the evutil_open_closeonexec patch to work on windows, old unixes.
Nick Mathewson [Sun, 12 Feb 2012 02:17:18 +0000 (21:17 -0500)]
Tweak the evutil_open_closeonexec patch to work on windows, old unixes.

Windows doesn't have a mode_t as far as I can tell.

Some unixes, iirc, don't like three-argument open without O_CREAT.

13 years agoMake uses of open() close-on-exec safe by introducing evutil_open_closeonexec.
Ross Lagerwall [Sat, 11 Feb 2012 15:23:17 +0000 (17:23 +0200)]
Make uses of open() close-on-exec safe by introducing evutil_open_closeonexec.

In a multi-process/threaded environment, opening fds internally
without the close-on-exec flag could leak fds to child processes.

13 years agoAdd a bufferevent_getcb() to find a bufferevent's current callbacks
Nick Mathewson [Sat, 11 Feb 2012 17:04:15 +0000 (12:04 -0500)]
Add a bufferevent_getcb() to find a bufferevent's current callbacks

13 years agoAlso make win32select.c conditional for IDE users
Nick Mathewson [Sat, 11 Feb 2012 04:56:49 +0000 (23:56 -0500)]
Also make win32select.c conditional for IDE users

13 years agoMerge branch 'ifdef' of git://github.com/rosslagerwall/libevent
Nick Mathewson [Sat, 11 Feb 2012 04:52:27 +0000 (23:52 -0500)]
Merge branch 'ifdef' of git://github.com/rosslagerwall/libevent

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Sat, 11 Feb 2012 04:51:11 +0000 (23:51 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoAdd an empty section to the changelog for 2.0.18-stable
Nick Mathewson [Sat, 11 Feb 2012 03:20:05 +0000 (22:20 -0500)]
Add an empty section to the changelog for 2.0.18-stable

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Sat, 11 Feb 2012 03:18:19 +0000 (22:18 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoCorrect a name in the credits. oops
Nick Mathewson [Sat, 11 Feb 2012 03:17:59 +0000 (22:17 -0500)]
Correct a name in the credits. oops

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Sat, 11 Feb 2012 03:16:46 +0000 (22:16 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoBump version to 2.0.17-stable-dev
Nick Mathewson [Sat, 11 Feb 2012 03:16:14 +0000 (22:16 -0500)]
Bump version to 2.0.17-stable-dev

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 10 Feb 2012 23:50:17 +0000 (18:50 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoUpdate the credits in the readme release-2.0.17-stable
Nick Mathewson [Fri, 10 Feb 2012 23:39:31 +0000 (18:39 -0500)]
Update the credits in the readme

13 years agoFinalize the changelog
Nick Mathewson [Fri, 10 Feb 2012 23:36:10 +0000 (18:36 -0500)]
Finalize the changelog

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 10 Feb 2012 22:33:50 +0000 (17:33 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
Makefile.am
WIN32-Code/event2/event-config.h
configure.in

13 years agoUpdate copyright notices to 2012
Nick Mathewson [Fri, 10 Feb 2012 22:29:53 +0000 (17:29 -0500)]
Update copyright notices to 2012

13 years agoBump version to 2.0.17-stable
Nick Mathewson [Fri, 10 Feb 2012 21:49:05 +0000 (16:49 -0500)]
Bump version to 2.0.17-stable

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 10 Feb 2012 17:05:39 +0000 (12:05 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoIn the kqueue backend, do not report EBADF as an EV_READ
Nick Mathewson [Fri, 10 Feb 2012 16:24:51 +0000 (11:24 -0500)]
In the kqueue backend, do not report EBADF as an EV_READ

We were doing this because of (correct) reports that NetBSD gives an
EBADF when you try to add the write side of a pipe for which the
read side has been closed.  But on most kqueue platforms, that
doesn't happen, and on *all* kqueue platforms, reporting a
nonexistent fd (which we usually have if we have seen EBADF) as
readable tends to give programs a case of the vapors.

Nicholas Marriott wrote the original patch here; I did the comment
fixes.

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 9 Feb 2012 20:16:02 +0000 (15:16 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoAvoid crash when freeing event_iocp and using event_set_mem_functions
Nick Mathewson [Thu, 9 Feb 2012 20:07:19 +0000 (15:07 -0500)]
Avoid crash when freeing event_iocp and using event_set_mem_functions

There was a calloc that needed to be an mm_calloc.

Reported by "fffvvvzz" on sourceforge.  Ticket 3486114

13 years agoPut #ifdef around some files to support alternate build systems.
Ross Lagerwall [Wed, 8 Feb 2012 16:46:00 +0000 (18:46 +0200)]
Put #ifdef around some files to support alternate build systems.

13 years agoBring the changelog up to date
Nick Mathewson [Tue, 7 Feb 2012 02:18:25 +0000 (21:18 -0500)]
Bring the changelog up to date

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Mon, 6 Feb 2012 17:39:09 +0000 (12:39 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoLoop on filtering SSL reads until we are blocked or exhausted.
Nick Mathewson [Mon, 6 Feb 2012 17:24:49 +0000 (12:24 -0500)]
Loop on filtering SSL reads until we are blocked or exhausted.

This is not a perfect fix, but it's much much better than the
current buggy behavior, which could lead to filtering SSL
connections that just stopped reading.

Based on ideas by Maseeb Abdul Qadir and Mark Ellzey.

13 years agoReplace more C99/C++ comments with oldschool /* */ comments
Nick Mathewson [Thu, 2 Feb 2012 16:45:23 +0000 (11:45 -0500)]
Replace more C99/C++ comments with oldschool /* */ comments

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 2 Feb 2012 16:41:37 +0000 (11:41 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoUse C-style comments in C source files (for compatibility with compilers such as...
Greg Hewgill [Sun, 20 Nov 2011 20:41:55 +0000 (09:41 +1300)]
Use C-style comments in C source files (for compatibility with compilers such as xlc on AIX).

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Wed, 1 Feb 2012 19:57:44 +0000 (14:57 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoevdns: fix a bug in circular-queue implementation
Nick Mathewson [Wed, 1 Feb 2012 19:56:43 +0000 (14:56 -0500)]
evdns: fix a bug in circular-queue implementation

found by Wang Qin

13 years agoFix a compile warning in event_reinit
Sebastian Hahn [Tue, 31 Jan 2012 17:58:59 +0000 (18:58 +0100)]
Fix a compile warning in event_reinit

Introduced in 272033efe575a9dc7ec6f123a96afba5c69ff1c6

13 years agoMake test-changelist faster
Nick Mathewson [Fri, 27 Jan 2012 20:10:28 +0000 (15:10 -0500)]
Make test-changelist faster

13 years agoCheck changelist as part of checking representational integrity
Nick Mathewson [Fri, 27 Jan 2012 19:39:18 +0000 (14:39 -0500)]
Check changelist as part of checking representational integrity

13 years agoRestore fast-path event_reinit() for slower backends
Nick Mathewson [Fri, 27 Jan 2012 19:30:41 +0000 (14:30 -0500)]
Restore fast-path event_reinit() for slower backends

We used to use the needs_reinit flag in struct eventop to indicate
whether an event backend had shared state across a fork(), and
therefore would require us to construct a new event backend.  But
when we realized that the signal notification fds and the thread
notification fds would always be shared across forks, we stopped
looking at it.

This patch restores the old behavior so that poll, select, and
win32select don't need to do a linear scan over all pending
fds/signals when they do a reinit.  Their life is hard enough
already.

13 years agoMake event_reinit() more robust and maintainable
Nick Mathewson [Fri, 27 Jan 2012 18:54:05 +0000 (13:54 -0500)]
Make event_reinit() more robust and maintainable

Previously, event_reinit required a bunch of really dubious hacks,
and violated a lot of abstraction barriers to mess around with lists
of internal events and "pretend" to re-add them.

The new (and fairly well commented!) implementation tries to be much
smarter, by isolating the changes as much as possible to the backend
state, and minimizing the amount of abstraction violations.

Specifically, we now use event_del() to remove events we want to
remove, rather than futzing around with queues in event_reinit().
To avoid bogus calls to evsel->del(), we temporarily replace evsel
with a null-object stub.

Also, we now push the responsibility for calling evsel->add() down
into the evmap code, so that we don't actually need to unlink and
re-link all of our events.

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 26 Jan 2012 21:56:33 +0000 (16:56 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoBetter workaround for Linux 3.2 edge-triggered epoll bug
Nick Mathewson [Thu, 26 Jan 2012 20:04:24 +0000 (15:04 -0500)]
Better workaround for Linux 3.2 edge-triggered epoll bug

On further investigation, it appears that this problem is limited to
AF_UNIX sockets, so let's just do the test on AF_INET sockets.

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 24 Jan 2012 22:18:52 +0000 (17:18 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoDo a memberwise comparison of threading function tables
Nate R [Tue, 24 Jan 2012 22:15:50 +0000 (17:15 -0500)]
Do a memberwise comparison of threading function tables

Doing a memcmp risks comparing uninitialized padding bytes at the
end of the structure.

13 years agoWhen including an -internal.h header outside the main tree, do so early
Nick Mathewson [Tue, 24 Jan 2012 21:08:00 +0000 (16:08 -0500)]
When including an -internal.h header outside the main tree, do so early

Some of our unit tests and sample code need functions and structures
defined in an -internal.h header.  But that can freak out OpenSolaris,
where stdio.h wants to define _FILE_OFFSET_BITS unless it's already
defined, and then evconfig-internal.h defines it.  Regular users
should never ever use our -internal.h headers, so the solution is
to make sure that if we're going to use them ourselves, we do so
before system headers.

13 years agoAllow more slop in deferred_cb_skew test; freebsd needs it
Nick Mathewson [Tue, 24 Jan 2012 20:58:11 +0000 (15:58 -0500)]
Allow more slop in deferred_cb_skew test; freebsd needs it

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 24 Jan 2012 20:30:51 +0000 (15:30 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoRemove a couple of now-unused variables
Nick Mathewson [Tue, 24 Jan 2012 20:30:31 +0000 (15:30 -0500)]
Remove a couple of now-unused variables

13 years agoMake event_base integrity check work on windows
Nick Mathewson [Tue, 24 Jan 2012 20:29:39 +0000 (15:29 -0500)]
Make event_base integrity check work on windows

13 years agoStart writing a changelog for 2.0.17-stable
Nick Mathewson [Tue, 24 Jan 2012 20:09:04 +0000 (15:09 -0500)]
Start writing a changelog for 2.0.17-stable

13 years agoUse test_timeval_diff_eq more consistently
Nick Mathewson [Tue, 24 Jan 2012 19:59:37 +0000 (14:59 -0500)]
Use test_timeval_diff_eq more consistently

13 years agoMake regression tests run over 3x faster.
Nick Mathewson [Tue, 24 Jan 2012 19:33:10 +0000 (14:33 -0500)]
Make regression tests run over 3x faster.

This was mainly a matter of reducing timeouts and delays, paying
special attention to every test that took longer than a second to
finish.

We could do better here; IMO anything over .7 sec is probably too
long, but it's a big win as it is.

Remember, interactive computing is a big win over batch processing:
anything that makes you get up and walk away from the terminal might
as well be making you carry your punch cards over to the mainframe.

13 years agoNew evhttp function to adjust initial retry timeout
Nick Mathewson [Tue, 24 Jan 2012 19:34:04 +0000 (14:34 -0500)]
New evhttp function to adjust initial retry timeout

13 years agoReduce the timeout in the main/fork test.
Nick Mathewson [Tue, 24 Jan 2012 16:45:00 +0000 (11:45 -0500)]
Reduce the timeout in the main/fork test.

There was no reason for it to be so long, except for the lack of a usleep

13 years agoAdd an (internal) usleep function for use by unit tests
Nick Mathewson [Tue, 24 Jan 2012 16:42:26 +0000 (11:42 -0500)]
Add an (internal) usleep function for use by unit tests

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 24 Jan 2012 16:17:06 +0000 (11:17 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoOops:remove an accidentally committed "sleep(1)" in a unit test
Nick Mathewson [Tue, 24 Jan 2012 16:16:26 +0000 (11:16 -0500)]
Oops:remove an accidentally committed "sleep(1)" in a unit test

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 24 Jan 2012 16:04:56 +0000 (11:04 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoWorkaround in the unit tests for an apparent epoll bug in Linux 3.2
Nick Mathewson [Tue, 24 Jan 2012 16:04:19 +0000 (11:04 -0500)]
Workaround in the unit tests for an apparent epoll bug in Linux 3.2

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 24 Jan 2012 15:29:31 +0000 (10:29 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
event.c

Edits required in:
        evmap.c

13 years agoFix a fd leak in event_reinit()
Nick Mathewson [Mon, 23 Jan 2012 23:15:44 +0000 (18:15 -0500)]
Fix a fd leak in event_reinit()

We were supposed to be closing the ev_signal_pair sockets.

13 years agoFix a list corruption bug when using event_reinit() with signals present
Nick Mathewson [Mon, 23 Jan 2012 22:59:16 +0000 (17:59 -0500)]
Fix a list corruption bug when using event_reinit() with signals present

While re-adding all the events, event_reinit() could add a signal
event, which could then cause evsig_add() to add the
base->sig.ev_signal event.  Later on its merry path through
base->eventqueue, event_reinit() would find that same event and give
it to event_io_add a second time.  This would make the ev_io_next
list for that fd become circular.  Ouch!

13 years agoCheck event_base correctness at end of each unit test
Nick Mathewson [Mon, 23 Jan 2012 22:43:35 +0000 (17:43 -0500)]
Check event_base correctness at end of each unit test

13 years agoFix compilation of windows evutil_check_ifaddrs
Nick Mathewson [Mon, 23 Jan 2012 03:27:16 +0000 (22:27 -0500)]
Fix compilation of windows evutil_check_ifaddrs

13 years agoAdd function to check referential integrity of an event_base
Nick Mathewson [Sat, 21 Jan 2012 17:55:15 +0000 (12:55 -0500)]
Add function to check referential integrity of an event_base

13 years agoMerge remote-tracking branch 'github/linked_list'
Nick Mathewson [Fri, 20 Jan 2012 21:31:20 +0000 (16:31 -0500)]
Merge remote-tracking branch 'github/linked_list'

Conflicts:
include/event2/event_struct.h

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 20 Jan 2012 16:40:39 +0000 (11:40 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoForce strict validation of HTTP version in response.
Catalin Patulea [Tue, 10 Jan 2012 23:33:58 +0000 (18:33 -0500)]
Force strict validation of HTTP version in response.

This sometimes accepted invalid versions like 'ICY' (n = 0, major = undefined, sometimes > 1).

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Mon, 16 Jan 2012 19:47:05 +0000 (14:47 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoSuppress a gcc warning from ignoring fwrite return in http-sample.c
Nick Mathewson [Mon, 16 Jan 2012 19:45:31 +0000 (14:45 -0500)]
Suppress a gcc warning from ignoring fwrite return in http-sample.c

Found by Steve Snyder

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Mon, 9 Jan 2012 21:54:19 +0000 (16:54 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoFix a race condition in the dns/bufferevent_connect_hostname test.
Nick Mathewson [Mon, 9 Jan 2012 21:44:53 +0000 (16:44 -0500)]
Fix a race condition in the dns/bufferevent_connect_hostname test.

As originally written, the test would only pass if the accept()
callbacks for the evconnlistener were all invoked before the last of
the CONNECTED/ERROR callbacks for the connecting/resolving bufferevent
had its call to event_base_loopexit() complete.  But this was only
accidentally true in 2.0, and might not be true at all in 2.1 where
we schedule event_base_once() callbacks more aggressively.

Found by Sebastian Hahn.

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Mon, 9 Jan 2012 17:00:04 +0000 (12:00 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoMake evconnlistener work around bug in older Linux when getting nmapped
Nick Mathewson [Mon, 9 Jan 2012 16:49:41 +0000 (11:49 -0500)]
Make evconnlistener work around bug in older Linux when getting nmapped

Older Linuxes sometimes respond to some nmap probes by having accept()
return a success but with socklen 0.  That can lead to confusing behavior
when you go to process the sockaddr.

13 years agoRemove bogus casts of socket to int before calling ev_callback
Nick Mathewson [Mon, 9 Jan 2012 16:33:38 +0000 (11:33 -0500)]
Remove bogus casts of socket to int before calling ev_callback

This should make 64-bit windows act better.

Found by Mark Heily.

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Wed, 14 Dec 2011 21:28:18 +0000 (16:28 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoBackport evhttp_connection_get_bufferevent to Libevent 2.0
Arno Bakker [Wed, 14 Dec 2011 21:17:19 +0000 (16:17 -0500)]
Backport evhttp_connection_get_bufferevent to Libevent 2.0

Backport by Arno Bakker; original implementation in 8d3a8500f4

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 8 Dec 2011 19:38:04 +0000 (14:38 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoSlightly clarify evbuffer_peek documentation
Nick Mathewson [Thu, 8 Dec 2011 19:36:32 +0000 (14:36 -0500)]
Slightly clarify evbuffer_peek documentation

13 years agoFix behavior of evbuffer_peek(buf,-1,NULL,NULL,0)
Zack Weinberg [Thu, 8 Dec 2011 19:30:20 +0000 (14:30 -0500)]
Fix behavior of evbuffer_peek(buf,-1,NULL,NULL,0)

(Patch altered by nickm to not affect the behavior of
evbuffer_peek(buf,-1,NULL,vec,n_vec).)

13 years agoRemove some accidentally-committed debugging code
Nick Mathewson [Thu, 8 Dec 2011 19:11:30 +0000 (14:11 -0500)]
Remove some accidentally-committed debugging code

13 years agowhitespace fixes
Nick Mathewson [Thu, 8 Dec 2011 19:05:47 +0000 (14:05 -0500)]
whitespace fixes

13 years agoMerge remote-tracking branch 'fancycode/buffer_references'
Nick Mathewson [Thu, 8 Dec 2011 19:04:04 +0000 (14:04 -0500)]
Merge remote-tracking branch 'fancycode/buffer_references'

Conflicts:
buffer.c

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 8 Dec 2011 16:43:04 +0000 (11:43 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
configure.in

13 years agocheck for sysctl before we use it
Mike Frysinger [Thu, 8 Dec 2011 16:39:48 +0000 (11:39 -0500)]
check for sysctl before we use it

Not all C libraries under Linux support the sysctl() func.

13 years agoSplit up extra-long AC_CHECK_FUNCS/HEADERS lines in configure.in
Nick Mathewson [Wed, 7 Dec 2011 23:29:06 +0000 (18:29 -0500)]
Split up extra-long AC_CHECK_FUNCS/HEADERS lines in configure.in

13 years agoMerge branch '21_ifaddr'
Nick Mathewson [Wed, 7 Dec 2011 23:17:34 +0000 (18:17 -0500)]
Merge branch '21_ifaddr'

13 years agoUse getifaddrs to detect our interfaces if possible
Nick Mathewson [Wed, 7 Dec 2011 23:16:32 +0000 (18:16 -0500)]
Use getifaddrs to detect our interfaces if possible

The old scheme involved connected UDP sockets and getsockname(), and is
generally best avoied.

13 years agoChanged use of refcounts to make sure referenced chains are freed in all cases.
Joachim Bauch [Wed, 7 Dec 2011 20:06:10 +0000 (21:06 +0100)]
Changed use of refcounts to make sure referenced chains are freed in all cases.

13 years agoAdd evbuffer_copyout_from to copy data from the middle of a buffer
Nick Mathewson [Wed, 7 Dec 2011 18:04:35 +0000 (13:04 -0500)]
Add evbuffer_copyout_from to copy data from the middle of a buffer

You could previously do this with evbuffer_peek() and some memcpys,
but it was a bit more work than most folks wanted to get into.

Closes sourceforge ticket 3108072

13 years agoBypass event_add when using event_base_once() for a 0-sec timeout
Nick Mathewson [Wed, 7 Dec 2011 16:49:52 +0000 (11:49 -0500)]
Bypass event_add when using event_base_once() for a 0-sec timeout

Some people use event_base_once(EV_TIMEOUT) to make a callback get
called "immediately".  But this is pretty roundabout: it uses the
timeout heap to immediately put the event onto the active queue, when
it could just use event_active.  Additionally, it can lead to
surprising re-ordering behavior.

This patch changes event_base_once so it bypasses event_add() and
called event_active() directly on a pure-timeout event with an empty
timeout.

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 6 Dec 2011 18:38:40 +0000 (13:38 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoFix a silly compilation error with the sun compiler
Colin Watt [Tue, 6 Dec 2011 18:35:54 +0000 (13:35 -0500)]
Fix a silly compilation error with the sun compiler

Apparently, other compilers were allowing "return free(x)" in a
function returning void.

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 6 Dec 2011 16:02:12 +0000 (11:02 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoBe absolutely sure to clear pncalls before leaving event_signal_closure
Nick Mathewson [Mon, 5 Dec 2011 20:02:27 +0000 (15:02 -0500)]
Be absolutely sure to clear pncalls before leaving event_signal_closure

I thought we'd fixed the cases where this could come up, but
apparently having an event_base_break() happen while processing
signal events could get us in trouble.

Found by Remi Gacogne.  Sourceforge issue 3451433 .

13 years agofix windows compilation issues with new file segment code
Nick Mathewson [Fri, 2 Dec 2011 06:48:14 +0000 (01:48 -0500)]
fix windows compilation issues with new file segment code

Found by Linus Nordberg

13 years agoFix two issues in the allow_dirty_shutdown code.
Nick Mathewson [Thu, 24 Nov 2011 17:31:50 +0000 (12:31 -0500)]
Fix two issues in the allow_dirty_shutdown code.

First, it shouldn't crash when it's passed a non-ssl bufferevent.

Second, it should behave correctly when it gets a true argument
other than 1.

13 years agoTweak allow_dirty_shutdown documentation
Nick Mathewson [Thu, 24 Nov 2011 17:24:38 +0000 (12:24 -0500)]
Tweak allow_dirty_shutdown documentation

13 years agoAllow users to set allow_dirty_shutdown
Catalin Patulea [Tue, 22 Nov 2011 00:57:19 +0000 (19:57 -0500)]
Allow users to set allow_dirty_shutdown

13 years agobev_ssl: Be more specific in event callbacks. evhttp in particular gets confused...
Catalin Patulea [Tue, 22 Nov 2011 00:24:50 +0000 (19:24 -0500)]
bev_ssl: Be more specific in event callbacks. evhttp in particular gets confused without at least one of BEV_EVENT_{READING|WRITING}.

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 18 Nov 2011 20:35:33 +0000 (15:35 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

13 years agoIncrement version to 2.0.16-stable-dev
Nick Mathewson [Fri, 18 Nov 2011 20:34:37 +0000 (15:34 -0500)]
Increment version to 2.0.16-stable-dev

13 years agoIncrement version to 2.0.16-stable release-2.0.16-stable
Nick Mathewson [Fri, 18 Nov 2011 20:27:06 +0000 (15:27 -0500)]
Increment version to 2.0.16-stable

13 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 18 Nov 2011 20:16:11 +0000 (15:16 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'