Skip to content
  1. Sep 17, 2010
    • Daniel Stenberg's avatar
      timeout: use the correct start value as offset · a76f852c
      Daniel Stenberg authored
      Rodric provide an awesome recipe that proved libcurl didn't timeout at
      the requested time - it instead often timed out at [connect time] +
      [timeout time] instead of the documented and intended [timeout time]
      only. This bug was due to the code using the wrong base offset when
      comparing against "now". I could also take the oppurtinity to simplify
      the code by properly using of the generic help function for this:
      Curl_timeleft.
      
      Reported by: Rodric Glaser
      Bug: http://curl.haxx.se/bug/view.cgi?id=3061535
      a76f852c
    • Daniel Stenberg's avatar
      Curl_timeleft: avoid returning "no timeout" by mistake · 3880dd37
      Daniel Stenberg authored
      As this function uses return code 0 to mean that there is no timeout, it
      needs to check that it doesn't return a time left value that is exactly
      zero. It could lead to libcurl doing an extra 1000 ms select() call and
      thus not timing out as accurately as it should.
      
      I fell over this bug when working on the bug 3061535 but this fix does
      not correct that problem alone, although this is a problem that needs to
      be fixed.
      
      Reported by: Rodric Glaser
      Bug: http://curl.haxx.se/bug/view.cgi?id=3061535
      3880dd37
  2. Sep 16, 2010
  3. Sep 15, 2010
  4. Sep 14, 2010
    • James Bursa's avatar
      getinmemory: make the example easier to follow · fbefd816
      James Bursa authored
      1. Remove the comment warning that it's "not been verified to work". It
         works with no problems in my testing.
      
      2. Remove 2 unnecessary includes.
      
      3. Remove the myrealloc(). Initialize chunk.memory with malloc() instead
         of NULL. The comments for these two parts contradicted each other.
      
      4. Handle out of memory from realloc() instead of continuing.
      
      5. Print a brief status message at the end.
      fbefd816
    • Daniel Stenberg's avatar
      multi: don't do extra expire calls for the connection · 296b246b
      Daniel Stenberg authored
      The timeout is set for the connect phase already at the start of the
      request so we should not add a new one, and we MUST not set expire to 0
      as that will remove any other potentially existing timeouts.
      296b246b
  5. Sep 12, 2010
  6. Sep 09, 2010
  7. Sep 08, 2010
  8. Sep 07, 2010
  9. Sep 06, 2010
  10. Sep 05, 2010
  11. Sep 03, 2010
  12. Sep 02, 2010
  13. Sep 01, 2010
  14. Aug 30, 2010
  15. Aug 28, 2010