cURL cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1403 curl_multi_socket_action + CONNECT-only broken

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Mon, 30 Mar 2015 11:49:30 +0000

- **status**: pending-needsinfo --> closed-fixed
- **Comment**:

Lovely, thanks for confirming. Closing this as fixed!

---
** [bugs:#1403] curl_multi_socket_action + CONNECT-only broken**
**Status:** closed-fixed
**Created:** Fri Aug 01, 2014 09:00 AM UTC by Marcel Raad
**Last Updated:** Mon Mar 30, 2015 11:43 AM UTC
**Owner:** Daniel Stenberg
As mentioned in [#1363]:
I'm using the latest git master built with Windows SSPI and I'm testing against a Microsoft TMG 2010 proxy.
Commit a4cece3d47cf092da00cf9910e87bb60b9eff533 broke code that uses the combination of curl_multi_socket_action and CONNECT-only (CURLOPT_CONNECT_ONLY + CURLOPT_HTTPPROXYTUNNEL) when NTLM authentication is used.
The following scenarios continue to work:
- curl_multi_socket_action without CONNECT
- CONNECT-only with the easy API or curl_multi_perform
- using Plain or Digest authentication instead of NTLM
In the error case, after successful proxy authentication and receiving the HTTP 200 OK reply from the proxy, first my socket callback is called with CURL_POLL_REMOVE and then my timeout callback is called with the whole remaining timeout (nearly 60 seconds in my debug scenario). After that timeout, I first call curl_multi_socket_action with CURL_SOCKET_TIMEOUT, then I call curl_multi_info_read and the transfer is finished with CURLE_OPERATION_TIMEDOUT.
The attached patch which reverts moving a return statement from within a condition to after it fixes my problem. Please note that I don't think the patch is correct as moving the return statement seems intended.
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2015-03-30

These mail archives are generated by hypermail.