Skip to content

Conversation

@thraxil
Copy link
Contributor

@thraxil thraxil commented Feb 17, 2017

Go's http.Server can be configured with read/write timeouts:

https://golang.org/pkg/net/http/#Server

that's a good idea to make it a bit more robust against bad clients.

put some reasonable defaults of 5/10 seconds but they can also be
overridden with environment variables.

Go's http.Server can be configured with read/write timeouts:

https://golang.org/pkg/net/http/#Server

that's a good idea to make it a bit more robust against bad clients.

put some reasonable defaults of 5/10 seconds but they can also be
overridden with environment variables.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 37.677% when pulling 7e28d79 on explicit-timeouts into a5acaba on master.

@sdreher sdreher merged commit 5289a6c into master Feb 21, 2017
@sdreher sdreher deleted the explicit-timeouts branch February 21, 2017 16:47
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

Successfully merging this pull request may close these issues.

4 participants