Skip to content
Snippets Groups Projects
  1. Jun 10, 2012
    • Daniel Stenberg's avatar
      Curl_pgrsDone: return int and acknowledge return code · 6cd084a3
      Daniel Stenberg authored
      Since Curl_pgrsDone() itself calls Curl_pgrsUpdate() which may return an
      abort instruction or similar we need to return that info back and
      subsequently properly handle return codes from Curl_pgrsDone() where
      used.
      
      (Spotted by a Coverity scan)
      6cd084a3
  2. Jan 12, 2012
  3. Nov 24, 2011
    • Jonas Schnelli's avatar
      query-part: ignore the URI part for given protocols · 2c905fd1
      Jonas Schnelli authored
      By setting PROTOPT_NOURLQUERY in the protocol handler struct, the
      protocol will get the "query part" of the URL cut off before the data is
      handled by the protocol-specific code. This makes libcurl adhere to
      RFC3986 section 2.2.
      
      Test 1220 is added to verify a file:// URL with query-part.
      2c905fd1
  4. Oct 21, 2011
    • Daniel Stenberg's avatar
      curl_multi_fdset: correct fdset with FTP PORT use · d7934b8b
      Daniel Stenberg authored
      After a PORT has been issued, and the multi handle would switch to the
      CURLM_STATE_DO_MORE state (which is unique for FTP), libcurl would
      return the wrong fdset to wait for when curl_multi_fdset() is
      called. The code would blindly assume that it was waiting for a connect
      of the second connection, while that isn't true immediately after the
      PORT command.
      
      Also, the function multi.c:domore_getsock() was highly FTP-centric and
      therefore ugly to keep in protocol-agnostic code. I solved this problem
      by introducing a new function pointer in the Curl_handler struct called
      domore_getsock() which is only called during the DOMORE state for
      protocols that set that pointer.
      
      The new ftp.c:ftp_domore_getsock() function now returns fdset info about
      the control connection's command/response handling while such a state is
      in use, and goes over to waiting for a writable second connection first
      once the commands are done.
      
      The original problem could be seen by running test 525 and checking the
      time stamps in the FTP server log. I can verify that this fix at least
      fixes this problem.
      
      Bug: http://curl.haxx.se/mail/lib-2011-10/0250.html
      Reported by: Gokhan Sengun
      d7934b8b
  5. Oct 13, 2011
    • Marcin Adamski's avatar
      tftp.c: TFTP timeout and unexpected block adjustments · 03adff1e
      Marcin Adamski authored
      Set ACK timeout to 5 seconds.
      
      If we are waiting for block X and receive block Y that is the expected one, we
      should send ACK and increase X (which is already implemented). Otherwise drop
      the packet and don't increase retry counter.
      03adff1e
  6. Sep 05, 2011
  7. Jul 26, 2011
  8. Jul 25, 2011
  9. Jul 04, 2011
  10. Jun 04, 2011
  11. May 05, 2011
  12. Apr 27, 2011
  13. Apr 21, 2011
  14. Mar 14, 2011
    • Daniel Stenberg's avatar
      protocols: use CURLPROTO_ internally · 13b64d75
      Daniel Stenberg authored
      The PROT_* set of internal defines for the protocols is no longer
      used. We now use the same bits internally as we have defined in the
      public header using the CURLPROTO_ prefix. This is for simplicity and
      because the PROT_* prefix was already used duplicated internally for a
      set of KRB4 values.
      
      The PROTOPT_* defines were moved up to just below the struct definition
      within which they are used.
      13b64d75
    • Daniel Stenberg's avatar
      protocol handler: added flags field · 8831000b
      Daniel Stenberg authored
      The protocol handler struct got a 'flags' field for special information
      and characteristics of the given protocol.
      
      This now enables us to move away central protocol information such as
      CLOSEACTION and DUALCHANNEL from single defines in a central place, out
      to each protocol's definition. It also made us stop abusing the protocol
      field for other info than the protocol, and we could start cleaning up
      other protocol-specific things by adding flags bits to set in the
      handler struct.
      
      The "protocol" field connectdata struct was removed as well and the code
      now refers directly to the conn->handler->protocol field instead. To
      make things work properly, the code now always store a conn->given
      pointer that points out the original handler struct so that the code can
      learn details from the original protocol even if conn->handler is
      modified along the way - for example when switching to go over a HTTP
      proxy.
      8831000b
  15. Jan 04, 2011
  16. Dec 06, 2010
  17. Nov 10, 2010
  18. Sep 26, 2010
  19. Sep 03, 2010
  20. Aug 10, 2010
  21. Jun 08, 2010
  22. May 21, 2010
    • 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
    • Daniel Stenberg's avatar
      TFTP: block id wrap bug fix · 0a29e244
      Daniel Stenberg authored
      In a normal expression, doing [unsigned short] + 1 will not wrap
      at 16 bits so the comparisons and outputs were done wrong. I
      added a macro do make sure it gets done right.
      
      Douglas Kilpatrick filed bug report #3004787 about it:
      http://curl.haxx.se/bug/view.cgi?id=3004787
      0a29e244
  23. May 18, 2010
  24. Apr 16, 2010
  25. Mar 26, 2010
  26. Mar 24, 2010
  27. Mar 21, 2010
    • Ben Greear's avatar
      Fix tftp return codes and tsize upload handling · ad76d58e
      Ben Greear authored
      Error codes were not properly returned to the main curl code (and on to apps
      using libcurl).
      
      tftp was crapping out when tsize == 0 on upload, but I see no reason to fail
      to upload just because the remote file is zero-length.  Ignore tsize option on
      upload.
      ad76d58e
  28. Mar 18, 2010
  29. Mar 06, 2010
  30. Mar 01, 2010
  31. Feb 04, 2010
    • Yang Tse's avatar
      · 7aef172a
      Yang Tse authored
      fix printf-style format strings
      7aef172a
Loading