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
Deal with backends that don't close connections #3886
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Please add more coverage in bin/varnishtest/tests/v00005.vtc
.
139cdc1
to
f55d4ca
Compare
Do I read the patch correctly, that it still waits for the timeout to expire to accept the backend response? |
This is why I requested a warning in the documentation. It's much simpler to implement "expect_close=false" as a last chance after timeout. |
f55d4ca
to
deb4d4e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I caught a few things I didn't notice in my preview review.
241c32a
to
c743846
Compare
It is already called from VCC_SymbolGet
029147a
to
11faf65
Compare
Reviewed and merged as 908c9b8...6f50b7c with @walid-git. |
Add "expect_close" parameter to probe to deal with backends that are considered sick because they don't close the TCP connection after sending the response.
The new parameter accepts the value true or false, and defaults to true for backward compatibility.