Skip to content
  1. Jun 02, 2010
  2. Jun 01, 2010
    • Daniel Stenberg's avatar
      multi_socket: handles timer inaccuracy better for timeouts · 2c72732e
      Daniel Stenberg authored
      Igor Novoseltsev reported a problem with the multi socket API and
      using timeouts and timers. It boiled down to a problem with
      libcurl's use of GetTickCount() interally to figure out the
      current time, while Igor's own application code used another
      function call.
      
      It made his app call the socket API timeout function a bit
      _before_ libcurl would consider the timeout to trigger, and that
      could easily lead to timeouts or stalls in the app. It seems
      GetTickCount() in general often has no better resolution than
      16ms and switching to the alternative function
      QueryPerformanceCounter has its share of problems:
      http://www.virtualdub.org/blog/pivot/entry.php?id=106
      
      We address this problem by simply having libcurl treat timers
      that already has occured or will occur within 40ms subject for
      treatment. I'm confident that there are other implementations and
      operating systems with similarly in accurate timer functions so
      it makes sense to have applied generically and I don't believe we
      sacrifice much by adding a 40ms inaccuracy on these timeouts.
      2c72732e
    • Yang Tse's avatar
      fix ldaps option issue · e1c2c9be
      Yang Tse authored
      e1c2c9be
    • Yang Tse's avatar
      fix ldap related compilation issues · 89da5324
      Yang Tse authored
      89da5324
    • Yang Tse's avatar
  3. May 31, 2010
  4. May 29, 2010
  5. May 28, 2010
  6. May 27, 2010
  7. May 25, 2010
  8. May 24, 2010
    • Howard Chu's avatar
      LDAP: properly implemented as a curl_handler · 2e056353
      Howard Chu authored
      makes the LDAP code much cleaner, nicer and in general being a
      better libcurl citizen. If a new enough OpenLDAP version is
      detect, the new and shiny lib/openldap.c code is then used
      instead of the old cruft
      
      Code by Howard, minor cleanups by Daniel.
      2e056353
  9. May 21, 2010
    • Tor Arntsen's avatar
      curl_fnmatch: Use int not bool when function returns int · 606b933a
      Tor Arntsen authored
      bool in curl internals is unsigned char and should not be used
      to receive return value from functions returning int - this fails
      when using IBM VisualAge and Tru64 compilers.
      606b933a
    • Daniel Stenberg's avatar
      TFTP: send legal timeout value · d17709da
      Daniel Stenberg authored
      Eric Mertens posted bug #3003705: when we made TFTP use the
      correct timeout option when sent to the server (fixed May 18th
      2010) it became obvious that libcurl used invalid timeout values
      (300 by default while the RFC allows nothing above 255). While of
      course it is obvious that as TFTP has worked thus far without
      being able to set timeout at all, just removing the setting
      wouldn't make any difference in behavior. I decided to still keep
      it (but fix the problem) as it now actually allows for easier
      (future) customization of the timeout.
      
      (http://curl.haxx.se/bug/view.cgi?id=3003705)
      d17709da
    • Daniel Stenberg's avatar
      TFTP: don't ack if wrong block num is received · 0bb6deda
      Daniel Stenberg authored
      If an unexpected block number was received, break out of the
      switch loop.
      0bb6deda