1. 05 Dec, 2011 4 commits
    • Daniel Stenberg's avatar
      c-ares: return proxy failure for all proxy types · 0cf05af7
      Daniel Stenberg authored
      When making a distinction which return code to return, the code previously
      only regarded HTTP proxies to be proxies and thus return host-related errors
      for failures on other proxy types than HTTP. Now all proxy types will be
      considered proxies...
      0cf05af7
    • Daniel Stenberg's avatar
      FTP: close callback fix · d5b5f64b
      Daniel Stenberg authored
      Keep track of which sockets that are the result of accept() calls and
      refuse to call the closesocket callback for those sockets. Test case 596
      now verifies that the open socket callback is called the same number of
      times as the closed socket callback for active FTP connections.
      
      Bug: http://curl.haxx.se/mail/lib-2011-12/0018.html
      Reported by: Gokhan Sengun
      d5b5f64b
    • Daniel Stenberg's avatar
      FTP: call opensocket callback properly · 088ba97a
      Daniel Stenberg authored
      When the new socket is created for an active connection, it is now done
      using the open socket callback.
      
      Test case 596 was modified to run fine, although it hides the fact that
      the close callback is still called too many times, as it also gets
      called for closing sockets that were created with accept().
      088ba97a
    • Daniel Stenberg's avatar
      Curl_socket: internal replacement for socket() · 9109cdec
      Daniel Stenberg authored
      Moved out into a separate function to work as a "generic" socket()
      replacement.
      9109cdec
  2. 04 Dec, 2011 1 commit
  3. 02 Dec, 2011 3 commits
    • Jason Glasgow's avatar
      CURLOPT_DNS_SERVERS: set name servers if possible (fix) · 62d3652b
      Jason Glasgow authored
      Ensure that CURLE_OK is returned if setting the name servers is successfull.
      62d3652b
    • Daniel Stenberg's avatar
      multi interface: only use non-NULL function pointer! · d81f5ea3
      Daniel Stenberg authored
      If the socket callback function pointer hasn't been set, we must not
      attempt to use it. Commit adc88ca2 made it more likely to occur.
      d81f5ea3
    • Jason Glasgow's avatar
      multi: handle timeouts on DNS servers by checking for new sockets · adc88ca2
      Jason Glasgow authored
      If the first name server is not available, the multi interface does
      not invoke the socket_cb when the DNS request to the first name server
      timesout.  Ensure that the list of sockets are always updated after
      calling Curl_resolver_is_resolved.
      
      This bug can be reproduced if Curl is complied with --enable_ares and
      your code uses the multi socket interfaces and the
      CURLMOPT_SOCKETFUNCTION option.  To test try:
        iptables -I INPUT \
                 -s $(sed -n -e '/name/{s/.* //p;q}' /etc/resolv.conf)/32 \
                 -j REJECT
      and then run a program which uses the multi-interface.
      adc88ca2
  4. 01 Dec, 2011 1 commit
  5. 30 Nov, 2011 4 commits
  6. 29 Nov, 2011 4 commits
  7. 28 Nov, 2011 2 commits
  8. 27 Nov, 2011 1 commit
  9. 25 Nov, 2011 10 commits
  10. 24 Nov, 2011 6 commits
  11. 23 Nov, 2011 1 commit
  12. 21 Nov, 2011 1 commit
  13. 20 Nov, 2011 1 commit
  14. 19 Nov, 2011 1 commit