Skip to content
  1. Jun 20, 2013
    • Daniel Stenberg's avatar
      multi_socket: react on socket close immediately · 88c5c63f
      Daniel Stenberg authored
      As a remedy to the problem when a socket gets closed and a new one is
      opened with the same file descriptor number and as a result
      multi.c:singlesocket() doesn't detect the difference, the new function
      Curl_multi_closed() gets told when a socket is closed so that it can be
      removed from the socket hash. When the old one has been removed, a new
      socket should be detected fine by the singlesocket() on next invoke.
      
      Bug: http://curl.haxx.se/bug/view.cgi?id=1248
      Reported-by: Erik Johansson
      88c5c63f
  2. Jun 17, 2013
  3. Jun 13, 2013
    • Daniel Stenberg's avatar
      curl_easy_perform: avoid busy-looping · 0feeab78
      Daniel Stenberg authored
      When curl_multi_wait() finds no file descriptor to wait for, it returns
      instantly and this must be handled gracefully within curl_easy_perform()
      or cause a busy-loop. Starting now, repeated fast returns without any
      file descriptors is detected and a gradually increasing sleep will be
      used (up to a max of 1000 milliseconds) before continuing the loop.
      
      Bug: http://curl.haxx.se/bug/view.cgi?id=1238
      Reported-by: Miguel Angel
      0feeab78
  4. Jun 12, 2013
  5. Jun 10, 2013
  6. Jun 07, 2013
  7. Jun 04, 2013
  8. Jun 03, 2013
  9. Jun 02, 2013
  10. May 30, 2013
  11. May 27, 2013
  12. May 22, 2013
    • Mike Giancola's avatar
      ossl_recv: SSL_read() returning 0 is an error too · 520833cb
      Mike Giancola authored
      SSL_read can return 0 for "not successful", according to the open SSL
      documentation: http://www.openssl.org/docs/ssl/SSL_read.html
      520833cb
    • Mike Giancola's avatar
      ossl_send: SSL_write() returning 0 is an error too · e58d9c87
      Mike Giancola authored
      We found that in specific cases if the connection is abruptly closed,
      the underlying socket is listed in a close_wait state. We continue to
      call the curl_multi_perform, curl_mutli_fdset etc. None of these APIs
      report the socket closed / connection finished.  Since we have cases
      where the multi connection is only used once, this can pose a problem
      for us. I've read that if another connection was to come in, curl would
      see the socket as bad and attempt to close it at that time -
      unfortunately, this does not work for us.
      
      I found that in specific situations, if SSL_write returns 0, curl did
      not recognize the socket as closed (or errored out) and did not report
      it to the application. I believe we need to change the code slightly, to
      check if ssl_write returns 0. If so, treat it as an error - the same as
      a negative return code.
      
      For OpenSSL - the ssl_write documentation is here:
      http://www.openssl.org/docs/ssl/SSL_write.html
      e58d9c87
  13. May 21, 2013
    • Daniel Stenberg's avatar
      Curl_cookie_add: handle IPv6 hosts · 85b9dc80
      Daniel Stenberg authored
      1 - don't skip host names with a colon in them in an attempt to bail out
      on HTTP headers in the cookie file parser. It was only a shortcut anyway
      and trying to parse a file with HTTP headers will still be handled, only
      slightly slower.
      
      2 - don't skip domain names based on number of dots. The original
      netscape cookie spec had this oddity mentioned and while our code
      decreased the check to only check for two, the existing cookie spec has
      no such dot counting required.
      
      Bug: http://curl.haxx.se/bug/view.cgi?id=1221
      Reported-by: Stefan Neis
      85b9dc80
  14. May 18, 2013
  15. May 16, 2013
  16. May 12, 2013
  17. May 11, 2013
  18. May 09, 2013
  19. May 07, 2013
  20. May 05, 2013
  21. May 04, 2013
  22. May 01, 2013
  23. Apr 30, 2013
  24. Apr 29, 2013
  25. Apr 28, 2013
  26. Apr 27, 2013