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
CONNECT fails if it can't send the entire request in one go #6950
Comments
Any proposal on how to fix this? |
btw, is this perchance in a |
yes, in the function of CONNECT of http_proxy.c static CURLcode CONNECT(struct connectdata *conn, |
I figured out how to write a test case for this issue that reproduces your problem and shows that http_proxy.c:CONNECT needs to be fixed: This test limits the initial CONNECT request send to 100 bytes, which breaks curl. |
Also added 'CURL_SMALLSENDS' to make Curl_write() send short packets, which helped verifying this even more. Add test 363 to verify. Reported-by: ustcqidi on github Fixes #6950
@bagder |
I did this
There are Proxy which need Kerberos Authentication, but the authentication flow sometimes failed . This not easy to reproduce.
After checking the wireshark captured file and source code of libcurl. We find the possible root cause of the issue.
When the Kerberos Auth challenge is bigger than CURL_MAX_WRITE_SIZE (16384) , the request with auth will be failed. (Will be fallbacked to using NTLM in our user's proxy environment.)
curl/libcurl version
7.74.0
operating system
Windows
The text was updated successfully, but these errors were encountered: