- Dec 07, 2011
-
-
Gokhan Sengun authored
As a follow-up from commit d5b5f64b, clear the sock_accepted status when such a socket is closed to avoid a re-used connection to retain the state wrongly. Bug: http://curl.haxx.se/mail/lib-2011-12/0079.html
-
- Dec 05, 2011
-
-
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
-
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().
-
Daniel Stenberg authored
Moved out into a separate function to work as a "generic" socket() replacement.
-
- Oct 17, 2011
-
-
Daniel Stenberg authored
Previously the bit was set before the connection was found working so if it would first fail to an ipv6 address and then connect fine to a IPv4 address the variable would still be TRUE. Reported by: Thomas L. Shinnick Bug: http://curl.haxx.se/bug/view.cgi?id=3421912
-
- Oct 15, 2011
-
-
Daniel Stenberg authored
Save the errno value immediately after a connect() failure so that it won't get reset to something else before we read it. Bug: http://curl.haxx.se/mail/lib-2011-10/0066.html Reported by: Frank Van Uffelen and Fabian Hiernaux
-
- Sep 09, 2011
-
-
Daniel Stenberg authored
Renamed the variable from 'proto' to 'level' simply because it is not protocol you set but level and that is the name of the argument used in man pages and the POSIX documentation of the setsockopt function.
-
- Sep 03, 2011
-
-
Yang Tse authored
-
- Aug 18, 2011
-
-
Daniel Stenberg authored
When connecting, make sure TIMER_CONNECT is set.
-
Daniel Stenberg authored
When using the multi interface, a SOCKS proxy, and a connection that wouldn't immediately consider itself connected (which my Linux tests do by default), libcurl would be tricked into doing _two_ connects to the SOCKS proxy when it setup the data connection and then of course the second attempt would fail miserably and cause error. This problem is a regression that was introduced by commit 4a42e5cd that was introduced in the 7.21.7 release. Bug: http://curl.haxx.se/mail/lib-2011-08/0199.html Reported by: Fabian Keil
-
- Aug 05, 2011
-
-
Yang Tse authored
-
- Jul 26, 2011
-
-
Yang Tse authored
-
- Jul 25, 2011
-
-
Yang Tse authored
-
- Jul 24, 2011
-
-
Yang Tse authored
-
- Jun 10, 2011
-
-
Daniel Stenberg authored
With "@unittest: [num]" in the header comment for each tested function. Shows we have a log way to go still...
-
- Jun 04, 2011
-
-
Daniel Stenberg authored
It was mostly typecasted to int all over the code so switching to long instead all over should be a net gain.
-
- May 26, 2011
-
-
Yang Tse authored
Fix compiler warning: conversion may lose significant bits
-
- May 18, 2011
-
-
Daniel Stenberg authored
Fix the return type of the callback to match close() and make use of it.
-
Daniel Stenberg authored
Introduced the initial setup to allow closesocket callbacks by making sure sclose() is only ever called from one place in the libcurl source and still run all test cases fine.
-
- Apr 28, 2011
-
-
Daniel Stenberg authored
When connecting to a socks or similar proxy we do the proxy handshake at once when we know the TCP connect is completed and we only consider the "connection" complete after the proxy handshake. This fixes test 564 which is now no longer considered disabled. Reported by: Dmitri Shubin Bug: http://curl.haxx.se/mail/lib-2011-04/0127.html
-
- Apr 27, 2011
-
-
Daniel Stenberg authored
"if(a)" is our style, not "if( a )"
-
Daniel Stenberg authored
By the use of a the new lib/checksrc.pl script that checks that our basic source style rules are followed.
-
- Apr 25, 2011
-
-
Daniel Stenberg authored
asyn-ares.c and asyn-thread.c are two separate backends that implement the same (internal) async resolver API for libcurl to use. Backend is specified at build time. The internal resolver API is defined in asyn.h for asynch resolvers.
-
- Apr 21, 2011
-
-
Fabian Keil authored
Found with codespell.
-
- Apr 11, 2011
-
-
Daniel Stenberg authored
When checking if an existing RTSP connection is alive or not, the checkconnection function might be called with a SessionHandle pointer being NULL and then referenced causing a crash. This happened only using the multi interface. Reported by: Tinus van den Berg Bug: http://curl.haxx.se/bug/view.cgi?id=3280739
-
- Feb 17, 2011
-
-
Daniel Stenberg authored
Introducing a few CURL_SOCKOPT* defines for conveniance. The new CURL_SOCKOPT_ALREADY_CONNECTED signals to libcurl that the socket is to be treated as already connected and thus it will skip the connect() call.
-
- Feb 09, 2011
-
-
Daniel Stenberg authored
When the callback returns an error, this function must make sure to return CURLE_ABORTED_BY_CALLBACK properly and not CURLE_OK as before to allow the callback to properly abort the operation.
-
- Jan 10, 2011
-
-
Daniel Stenberg authored
The idea that the protocol and socktype is part of name resolving in the libc functions is nuts. We keep the name resolver functions assume TCP/STREAM and we make sure that when we want to connect to a UDP service we use the correct UDP/DGRAM set instead. This bug was because the ->protocol field was not always set correctly. This bug was only affecting ipv6-disabled non-cares non-threaded builds. Bug: http://curl.haxx.se/bug/view.cgi?id=3154436 Reported by: "dperham"
-
- Jan 04, 2011
-
-
Daniel Stenberg authored
As the function doesn't really use the connectdata struct but only the SessionHanadle struct I modified what argument it wants.
-
- Dec 23, 2010
-
-
Daniel Stenberg authored
When using the multi interface and connecting to a host name that resolves to multiple IP addresses, there was no logic that made it continue to the next IP if connecting to the first address times out. This is now corrected.
-
- Dec 03, 2010
-
-
Yang Tse authored
- Show address string from proper buffer in case of connection failure. - Try next address when inet_ntop() fails.
-
- Dec 01, 2010
-
-
Yang Tse authored
-
- Nov 30, 2010
- Nov 11, 2010
-
-
Daniel Stenberg authored
The IP version choice was previously only in the UserDefined struct within the SessionHandle, but since we sometimes alter that option during a request we need to have it on a per-connection basis. I also moved more "init conn" code into the allocate_conn() function which is designed for that purpose more or less.
-
- Sep 17, 2010
-
-
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
-
- Sep 14, 2010
-
-
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.
-
- Sep 05, 2010
-
-
Daniel Stenberg authored
Curl_getconnectinfo() is changed to return a proper curl_socket_t for the last socket so that it'll work more portably (and cause less compiler warnings).
-
- Aug 20, 2010
-
-
Dirk Manske authored
The correctly extracted errno contents were mistakenly overwritten by a newer value that wasn't the correct error value. Bug: http://curl.haxx.se/mail/lib-2010-08/0242.html
-