|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-3033966 ] SOCKS proxies do not work with multi interface
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sat, 24 Jul 2010 21:50:15 +0000
Bugs item #3033966, was opened at 2010-07-24 11:51
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
Further tests indicate that Commit:4b351d018e3d6691191fd653a17f14f4a31e0b4c introduced un expected behaviour with socks proxies and the multi interface.
The problem occurs in the multi interface state machine, because on the multi interface connects are non blocking have have a timeout of 0, the STATE_CONNECT returns before the socket to the proxy is connected and we enter the STATE_WAITCONNECT
case CURLM_STATE_WAITCONNECT:
Curl_is_connected() since 4b351d018 sets conn->bits.tcpconnect = TRUE;
Curl_connected_proxy() tests for conn->bits.tcpconnect == TRUE and returns with out setting up the proxy
Attached is a patch that allows Curl_connected_proxy() to run when conn->bits.tcpconnect == TRUE and the multi interface is in use, comments in that function seem to suguest that this should have been allowed?
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
Hm, doesn't this patch go against the fix the 4b351d018e commit
In general I think checks for interface in use is suspicious and I'm far
To me, it looks like we should do something about the confusion around the
Possibly we should convert it to a state variable: NONE. TCPCONNECTING,
Thoughts?
(it's a bit late here and I'm on vacation so I'm sorry if I overlooked
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info