-
-
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
Behaviour of https changed in curl 7.87.0 if 'Connection: close' header is present. #10172
Comments
This is not a bug, it is on purpose: "Fatal because this is a curl debug build" Can you elaborate on why this is a problem for you? |
Hi @bagder , sure. My point is that "Fatal because this is a curl debug build" did not appear in 7.86.0 with --enable-debug where it now appears in 7.87.0 with --enable-debug. I did a trace on both 7.86.0 and 7.87.0 and it seems that recent refactoring in lib/vtls/openssl.c has made a change in handling connection. |
To be more precise, https://github.com/curl/curl/blob/master/lib/vtls/openssl.c#L4683 In 7.86.0, err did not equal to SSL_ERROR_SYSCALL, hence no error message even with --enable-debug. My point is that err was not SSL_ERROR_SYSCALL in the previous version regardless of --enable-debug and message. |
When the RECV bit is cleared because the response reading for this transfer is complete, the read loop should be stopped. data_pending() can otherwise still return TRUE and another read would be attempted. Reported-by: Hide Ishikawa Fixes #10172 Closes #
Thank you for the fix. |
I did this
Output with curl 7.87.0 is:
Please note that I deliverately built curl with --enable-debug.
Following is the output with --verbose.
I expected the following
With curl 7.86.0, the same command return 0 (success) without any error even with --enable-debug.
Following is the output with --verbose.
curl/libcurl version
operating system
The text was updated successfully, but these errors were encountered: