You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AssertionError [ERR_ASSERTION]: Payload timeout must be shorter than socket timeout
What result did you expect?
I expected to be able to configure the route.options.timeout.socket to be smaller than route.options.payload.timeout. The payload timeout controls the total payload reception time; where-as route.options.timeout.socket is actually the "idle socket timeout", not the "total time socket is open timeout". For example, we should be able to configure the payload to be sent within 1 second, while ensuring that the socket isn't idle for 500ms during the entire duration of the request and response.
The text was updated successfully, but these errors were encountered:
Support plan
Context
What are you trying to achieve or the steps to reproduce?
Configuring a route with
route.options.timeout.socket
smaller thanroute.options.payload.timeout
What was the result you got?
Causes the following error to be throw:
What result did you expect?
I expected to be able to configure the
route.options.timeout.socket
to be smaller thanroute.options.payload.timeout
. The payload timeout controls the total payload reception time; where-asroute.options.timeout.socket
is actually the "idle socket timeout", not the "total time socket is open timeout". For example, we should be able to configure the payload to be sent within 1 second, while ensuring that the socket isn't idle for 500ms during the entire duration of the request and response.The text was updated successfully, but these errors were encountered: