Revision timeoutSecond
should only apply until the first byte of the response
#2582
Labels
area/API
API objects and controllers
area/networking
kind/bug
Categorizes issue or PR as related to a bug.
kind/spec
Discussion of how a feature should be exposed to customers.
Milestone
Expected Behavior
When I deploy an application with the
timeoutSeconds
, I expect the timeout to only apply from when the request is sent until the response response begins.Actual Behavior
When I deploy an application with the
timeoutSeconds
set, eg. "45s", I the timeout applies from when the request is sent until the response response ends.Steps to Reproduce the Problem
knative/serving/test/test_images/timeout
application as follows:service.yaml
:?before=15&after=45
. This will fail, but should not fail.?before=45&after=15
. This will fail, and should fail.Additional Info
The current implementation uses
http.TimeoutHandler
, which will buffer the entire request. This poses problems for streaming requests, eg. gRPC in #2539.cc @tcnghia @mattmoor @evankanderson
The text was updated successfully, but these errors were encountered: