diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-05-11 11:45:56 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-05-11 11:45:56 +0000 |
commit | f04720afb8e0fd1a5065fb5aa833dbc5e6417698 (patch) | |
tree | 91c2b2cdf59cf74bda3a31a574a68707e90ad4aa /lib | |
parent | e6e6c6e635b72502a1bfc24cd407a82f9ecd82e2 (diff) |
fix the Curl_connected_proxy function for when libcurl actually connects fine
to it in the actual connect call and not asynchronously.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2825,6 +2825,12 @@ CURLcode Curl_connected_proxy(struct connectdata *conn) CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; + if(conn->bits.tcpconnect) + /* allow this to get called again from the multi interface when TCP is + found connected in the state machine, even though it has already been + called if the connection happened "instantly" */ + return CURLE_OK; + switch(data->set.proxytype) { #ifndef CURL_DISABLE_PROXY case CURLPROXY_SOCKS5: |