Permalink
Commits on Dec 19, 2011
  1. Make sure the input buffers in a filtered openssl connection are drai…

    …ned properly in consider_read. SSL_pending() doesn't always return the correct number of bytes to read from the underlying buffer event in the case of filtered openssl connections. Fixes regression introduced by 2aa036f .
    committed Dec 19, 2011
Commits on Dec 14, 2011
  1. Merge remote-tracking branch 'origin/patches-2.0'

    Nick Mathewson committed Dec 14, 2011
  2. Backport evhttp_connection_get_bufferevent to Libevent 2.0

    Backport by Arno Bakker; original implementation in 8d3a850
    Arno Bakker committed with Nick Mathewson Dec 14, 2011
Commits on Dec 8, 2011
  1. Merge remote-tracking branch 'origin/patches-2.0'

    Nick Mathewson committed Dec 8, 2011
  2. Slightly clarify evbuffer_peek documentation

    Nick Mathewson committed Dec 8, 2011
  3. 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).)
    zackw committed with Nick Mathewson Dec 8, 2011
  4. Remove some accidentally-committed debugging code

    Nick Mathewson committed Dec 8, 2011
  5. whitespace fixes

    Nick Mathewson committed Dec 8, 2011
  6. Merge remote-tracking branch 'fancycode/buffer_references'

    Conflicts:
    	buffer.c
    Nick Mathewson committed Dec 8, 2011
  7. Merge remote-tracking branch 'origin/patches-2.0'

    Conflicts:
    	configure.in
    Nick Mathewson committed Dec 8, 2011
  8. check for sysctl before we use it

    Not all C libraries under Linux support the sysctl() func.
    vapier committed with Nick Mathewson Dec 8, 2011
Commits on Dec 7, 2011
  1. Merge branch '21_ifaddr'

    Nick Mathewson committed Dec 7, 2011
  2. Use getifaddrs to detect our interfaces if possible

    The old scheme involved connected UDP sockets and getsockname(), and is
    generally best avoied.
    Nick Mathewson committed Dec 7, 2011
  3. 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
    Nick Mathewson committed Dec 7, 2011
  4. 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.
    Nick Mathewson committed Dec 7, 2011
Commits on Dec 6, 2011
  1. Merge remote-tracking branch 'origin/patches-2.0'

    Nick Mathewson committed Dec 6, 2011
  2. Fix a silly compilation error with the sun compiler

    Apparently, other compilers were allowing "return free(x)" in a
    function returning void.
    Colin Watt committed with Nick Mathewson Dec 6, 2011
  3. Merge remote-tracking branch 'origin/patches-2.0'

    Nick Mathewson committed Dec 6, 2011
Commits on Dec 5, 2011
  1. 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 .
    Nick Mathewson committed Dec 5, 2011
Commits on Dec 2, 2011
  1. fix windows compilation issues with new file segment code

    Found by Linus Nordberg
    Nick Mathewson committed Dec 2, 2011
Commits on Nov 24, 2011
  1. 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.
    Nick Mathewson committed Nov 24, 2011
  2. Tweak allow_dirty_shutdown documentation

    Nick Mathewson committed Nov 24, 2011
  3. Allow users to set allow_dirty_shutdown

    cpatulea committed with Nick Mathewson Nov 22, 2011
  4. bev_ssl: Be more specific in event callbacks. evhttp in particular ge…

    …ts confused without at least one of BEV_EVENT_{READING|WRITING}.
    cpatulea committed with Nick Mathewson Nov 22, 2011
Commits on Nov 18, 2011
  1. Merge remote-tracking branch 'origin/patches-2.0'

    Nick Mathewson committed Nov 18, 2011
  2. Increment version to 2.0.16-stable-dev

    Nick Mathewson committed Nov 18, 2011
  3. Increment version to 2.0.16-stable

    Nick Mathewson committed Nov 18, 2011
  4. Merge remote-tracking branch 'origin/patches-2.0'

    Nick Mathewson committed Nov 18, 2011
  5. Revise 2.0.16-stable changelog

    Nick Mathewson committed Nov 18, 2011
  6. Merge remote-tracking branch 'origin/patches-2.0'

    Nick Mathewson committed Nov 18, 2011
Commits on Nov 17, 2011
  1. add comment to new consider_reading code

    Nick Mathewson committed Nov 17, 2011
  2. Avoid spinning on OpenSSL reads

    Previously, if some sender were generating data to read on an
    OpenSSL connection as fast as we could process it, we could easily
    wind up looping on an openssl do_read operation without ever
    considering other sockets.
    
    The difference between this and the original method in
    consider_reading() is that it only loops for a single completed
    *frame* instead of looping until fd is drained or an error condition
    was triggered.
    
    {Patch split out by nickm}
    Mark Ellzey committed with Nick Mathewson Nov 17, 2011
  3. Move SSL rate-limit enforcement into bytes_to_read()

    Nick Mathewson committed Nov 17, 2011