Skip to content
  1. Sep 05, 2010
  2. Aug 20, 2010
  3. Aug 10, 2010
    • Daniel Stenberg's avatar
      callbacks: acknowledge progress callback error returns · 37201e3c
      Daniel Stenberg authored
      When the progress callback is called during the TCP connection, an error
      return would accidentally not abort the operation as intended but would
      instead be counted as a failure to connect to that particular IP and
      libcurl would just continue to try the next. I made singleipconnect()
      and trynextip() return CURLcode properly.
      
      Added bonus: it corrected the error code for bad --interface usages,
      like tested in test 1084 and test 1085.
      
      Reported by: Adam Light
      Bug: http://curl.haxx.se/mail/lib-2010-08/0105.html
      37201e3c
  4. Jun 24, 2010
    • Daniel Stenberg's avatar
      multi_socket: re-use of same socket without notifying app · 8da56e12
      Daniel Stenberg authored
      When a hostname resolves to multiple IP addresses and the first one
      tried doesn't work, the socket for the second attempt may get dropped on
      the floor, causing the request to eventually time out. The issue is that
      when using kqueue (as on mac and bsd platforms) instead of select, the
      kernel removes the first fd from kqueue when it is closed (in trynextip,
      connect.c:503). Trynextip() then goes on to open a new socket, which
      gets assigned the same number as the one it just closed. Later in
      multi.c, socket_cb is not called because the fd is already in
      multi->sockhash, so the new socket is never added to kqueue.
      
      The correct fix is to ensure that socket_cb is called to remove the fd
      when trynextip() closes the socket, and again to re-add it after
      singleipsocket(). I'm not sure how to cleanly do that, but the attached
      patch works around the problem in an admittedly kludgy way by delaying
      the close to ensure that the newly-opened socket gets a different fd.
      
      Daniel's added comment: I didn't spot a way to easily do a nicer fix so
      I've proceeded with Ben's patch.
      
      Bug: http://curl.haxx.se/bug/view.cgi?id=3017819
      Patch by: Ben Darnell
      8da56e12
  5. Jun 08, 2010
  6. Jun 07, 2010
  7. Jun 05, 2010
  8. Jun 04, 2010
  9. May 07, 2010
    • Daniel Stenberg's avatar
      multi interface: missed storing connection time · adaf8753
      Daniel Stenberg authored
      Dirk Manske reported a regression. When connecting with the multi
      interface, there were situations where libcurl wouldn't store
      connect time correctly as it used to (and is documented to) do.
      
      Using his fine sample program we could repeat it, and I wrote up
      test case 573 using that code. The problem does not easily show
      itself using the local test suite though.
      
      The fix, also as suggested by Dirk, is a bit on the ugly side as
      it adds yet another call to Curl_verboseconnect() and setting the
      TIMER_CONNECT time.  That situation is subject for some closer
      inspection in the future.
      adaf8753
  10. Mar 24, 2010
  11. Mar 23, 2010
  12. Feb 04, 2010
    • Yang Tse's avatar
      · 7aef172a
      Yang Tse authored
      fix printf-style format strings
      7aef172a
  13. Feb 02, 2010
    • Yang Tse's avatar
      · d1717e7c
      Yang Tse authored
      Fix compiler warning: conditional expression is constant
      d1717e7c
  14. Jan 28, 2010
    • Yang Tse's avatar
      · d65cf788
      Yang Tse authored
      fix printf-style format strings
      d65cf788
  15. Jan 22, 2010
  16. Jan 11, 2010
  17. Dec 30, 2009
  18. Oct 01, 2009
  19. Aug 29, 2009
  20. Jul 09, 2009
  21. May 07, 2009
  22. May 02, 2009
  23. Apr 30, 2009
  24. Apr 28, 2009
  25. Apr 21, 2009
  26. Feb 28, 2009
  27. Feb 27, 2009
  28. Dec 30, 2008
  29. Dec 16, 2008
  30. Nov 14, 2008
  31. Nov 13, 2008
  32. Nov 06, 2008
  33. Nov 03, 2008
  34. Oct 24, 2008
  35. Oct 17, 2008
  36. Oct 13, 2008