-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Receiving response even after the timeoutSeconds
is reached
#15486
Comments
timeoutSeconds
is reachedtimeoutSeconds
is reached
Hi @karanibm6 the timeout is based on whether a write happened or not.
That is the meaning of "... that the request instance is allowed to respond to a request." |
@skonto thanks for looking into this. Though, what you describe sounds rather like the
What would be the purpose of |
@SaschaSchwarze0 hi, This is indeed confusing. I see that we have a conformance test:
The logic in the test image does the following:
This by design, allows to bypass the timeoutSeconds value as reported in the issue here. However, in the past we changed the spec back to its original idea of using timeoutSeconds as maxDuration since it had deviated: see #12970 and knative/specs#100. So it seems we should just timeout when the response is not within the timeoutSeconds defined but we don't comply with that? 🤔 cc @dprotaso what is the status here? |
I have a PR that tests enforcing the timeout. Note that once we write the header we can't re-write it, but behavior is enforced to kill the connection. |
The request should be killed - I'm guessing we should track if we've written a header and not do it again |
For a knative revision, one can send the response headers and some data before the timeout. It is then seemingly possible to write data longer than the timeout, possibly forever. This is imo not how Knative defines the timeout seconds:
What version of Knative?
Expected Behavior
The request should timeout when the
timeoutSeconds
is reached.Actual Behavior
The request doesn't timeout within
timeoutSeconds
Steps to Reproduce the Problem
timeoutSeconds
to 30sYou will observe that you will get the response after 50s. and the request doesn't times out in 30s.
The text was updated successfully, but these errors were encountered: