1. 12 Dec, 2009 1 commit
    • Sebastian Hahn's avatar
      *_free functions now accept NULL · 3807db00
      Sebastian Hahn authored
      Some *_free functions threw asserts when passed NULL. Now all of them
      accept NULL as input and perform no action when called that way.
      
      This gains us consistence for our free functions, and allows some
      code simplifications where an explicit null check is no longer necessary.
      3807db00
  2. 13 Oct, 2009 2 commits
    • Nick Mathewson's avatar
      Another event2 evdns fix. · 71cdd99d
      Nick Mathewson authored
      71cdd99d
    • Nick Mathewson's avatar
      Fix a crash when using evdns from Libevent 2. · 81eee0ec
      Nick Mathewson authored
      When we tried to use the deprecated non-threadsafe evdns
      interfaces in Libevent 2 without using the also-deprecated
      event_init() interface, Libevent 2 would sensibly crash, since it
      has no guess where to find the Libevent library.
      
      Here we use the evdns_base_*() functions instead if they're
      present, and fake them if they aren't.
      81eee0ec
  3. 13 Jul, 2009 1 commit
  4. 12 Jun, 2009 2 commits
    • Nick Mathewson's avatar
      Isolate Libevent API dependency to just main.c and dns.c in src/or. · 1e709c79
      Nick Mathewson authored
      The rest of the code was only including event.h so that it could see
      EV_READ and EV_WRITE, which we were using as part of the
      connection_watch_events interface for no very good reason.
      1e709c79
    • Nick Mathewson's avatar
      Update Tor to use Libevent 2.0 APIs when available. · e5b88dc8
      Nick Mathewson authored
      This patch adds a new compat_libevent.[ch] set of files, and moves our
      Libevent compatibility and utilitity functions there.  We build them
      into a separate .a so that nothing else in src/commmon depends on
      Libevent (partially fixing bug 507).
      
      Also, do not use our own built-in evdns copy when we have Libevent
      2.0, whose evdns is finally good enough (thus fixing Bug 920).
      e5b88dc8
  5. 03 Jun, 2009 1 commit
    • Nick Mathewson's avatar
      Fix gprof bottlenecks on exit nodes found by Jacob. · b262e765
      Nick Mathewson authored
      Apparently all the stuff that does a linear scan over all the DNS
      cache entries can get really expensive when your DNS cache is very
      large.  It's hard to say how much this will help performance, since
      gprof doesn't count time spent in OpenSSL or zlib, but I'd guess 10%.
      
      Also, this patch removes calls to assert_connection_ok() from inside
      the read and write callbacks, which are similarly unneeded, and a
      little costlier than I'm happy with.
      
      This is probably worth backporting to 0.2.0.
      b262e765
  6. 27 May, 2009 1 commit
  7. 24 May, 2009 1 commit
  8. 23 May, 2009 1 commit
  9. 04 May, 2009 1 commit
  10. 02 May, 2009 1 commit
  11. 30 Jan, 2009 1 commit
  12. 28 Jan, 2009 1 commit
  13. 10 Jan, 2009 1 commit
  14. 06 Jan, 2009 1 commit
  15. 04 Jan, 2009 1 commit
  16. 26 Dec, 2008 1 commit
  17. 24 Dec, 2008 1 commit
  18. 22 Dec, 2008 2 commits
  19. 19 Dec, 2008 1 commit
  20. 18 Dec, 2008 2 commits
  21. 17 Dec, 2008 1 commit
  22. 10 Dec, 2008 1 commit
  23. 29 Oct, 2008 1 commit
  24. 21 Oct, 2008 1 commit
  25. 16 Oct, 2008 1 commit
  26. 22 Aug, 2008 1 commit
  27. 05 Aug, 2008 1 commit
    • Nick Mathewson's avatar
      r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400 · 960a0f0a
      Nick Mathewson authored
       Initial conversion of uint32_t addr to tor_addr_t addr in connection_t and related types.  Most of the Tor wire formats using these new types are in, but the code to generate and use it is not.  This is a big patch.  Let me know what it breaks for you.
      
      
      svn:r16435
      960a0f0a
  28. 25 Apr, 2008 1 commit
  29. 22 Apr, 2008 1 commit
  30. 18 Mar, 2008 1 commit
  31. 22 Feb, 2008 2 commits
  32. 21 Feb, 2008 3 commits
  33. 19 Feb, 2008 1 commit