-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy requests socket's closure. WinSSL writes to it anyway? #1239
Comments
This bug can probably be fixed with a single if-statement. With my very limited knowledge of the code I'd tentatively suggest this if-statement. Works for me in the two simple test cases I've tried.
Can be of any assistance while this is still fresh in my memory? (I think my bug report and possible fix are adequate in this respect, but just wanted to double-check). |
@Antony74 thank you for the bug report and the dummy proxy code! I think the bug should be solved like this (I've used the same comment as in
|
@mkauf thanks! Yes that works for me :-) Much more nicely written than the similar attempt at a fix I posted. |
@jay May I mention you as a reviewer in the commit message (Reviewed-by) ? |
yes |
Fixed, thanks! |
Version numbers
Curl must be compiled with WinSSL support. I'm using Curl 7.52.1 and Windows 8.1.
My VC12 build configuration is:
DLL Release - DLL Windows SSPI - DLL WinIDN x64.
Dummy proxy
We don't have access to the proxy server where this issue was originally observed.
Therefore to reproduce this problem we require a proxy server which always responds with a 407 (proxy authentication required) and asks for the connection to be closed.
I achieved this with the following NodeJS script:
Curl command line
Once the dummy proxy is running, we can enter the following curl command:
curl --proxy localhost:8080 --proxy-negotiate --proxy-user : https://google.com/
Bug
curl: (56) Send failure: Descriptor is not a socket
Expected
The correct error message for curl to give in this scenario is:
curl: (56) Received HTTP code 407 from proxy after CONNECT
The text was updated successfully, but these errors were encountered: