Skip to content

timeout period for http responses #2865

Answered by azajkhan
rahulagrawal asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rahulagrawal
In hydra 1.10.2 we checked in code there is no config driven control for requestTimeout.
hydra uses a library "ORy's Graceful" (refer hydra/cmd/server/handler.go > http server init)
https://github.com/ory/graceful and have 10 seconds timeout value as default.
configs in http_defaults.go for request and response respectively.
// DefaultReadTimeout sets the maximum time a client has to fully stream a request (5s)
DefaultReadTimeout = 5 * time.Second
// DefaultWriteTimeout sets the maximum amount of time a handler has to fully process a request (10s)
DefaultWriteTimeout = 10 * time.Second

refer: https://github.com/ory/graceful/blob/master/http_defaults.go

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vinckr
Comment options

Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants