-
Notifications
You must be signed in to change notification settings - Fork 106
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
Setting a timeout to read a request's data #209
Comments
This (timeouts on read/writes + timeouts/deadlines on whole request handling) and dynamically allocated thread-pool size is pretty much everything required to bring a gap between async and threaded http servers for most practical applications. |
To what extent should the above (timeouts + deadlines) be the responsibility of the underlying HTTP server |
Hi!
Right now, a client can lock a server thread indefinitely by simply sending a
Content-Length
header larger than the data it is actually going to send.Being able to set a timeout on reading a
RequestBody
may mitigate this. Unfortunately, this structure only implements theRead
trait due totiny-http
also just returning aRead + Send
value. There is noRawFd
we could use for polling.So how can such a timeout be implemented in Rouille?
Thanks in advance.
The text was updated successfully, but these errors were encountered: