Skip to content
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

Connection Read Timeout #39

Open
avalchev opened this issue Aug 8, 2016 · 2 comments
Open

Connection Read Timeout #39

avalchev opened this issue Aug 8, 2016 · 2 comments

Comments

@avalchev
Copy link

avalchev commented Aug 8, 2016

I don't see how to specify how long server should wait to read the message from client's socket.

Not sure if this is possible.

@vinipsmaker
Copy link
Member

I think currently requires some boilerplate.

You'd need to wrap asio's socket and some timer object. I'll use this issue to track any abstraction that I add to improve the situation.

@avalchev
Copy link
Author

avalchev commented Aug 8, 2016

Apache HTTPD has two options for reading timeouts.

First option is time for filling socket buffer from socket. Attacker can send half of header data and stop. This will make read wait forever - DDoS.

Second option is time for reading next request from pipelined messages (Connection: keep-alive). Attack is of same type. As far as I know, Apache HTTPD defaults to 5 sec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants