-
Notifications
You must be signed in to change notification settings - Fork 17.3k
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
HTTP Conn needs a timeout #213
Labels
Comments
Owner changed to r...@golang.org. Status changed to Accepted. |
Now that we have the http.Server struct, we at least have a place to put this option. But I'm not sure what it helps. It certainly wouldn't help the example above since it'd then just spin forever which is arguably worse than a fd shortage. A fd shortage isn't even quite realistic nowadays. I've done hundreds of thousands of fds in a single process on a moderate machine years ago. I feel that anybody who wants a timeout on a handler could wrap it in another Handler that used a time.Timer to send an error to the client at least. But in lieu of ways to kill fellow goroutines forcefully (which opens up a huge can of worms), I don't really see anything to do here. |
Labels changed: added pkg-http. Owner changed to @bradfitz. |
This issue was closed by revision 4787e70. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by david.titarenco:
The text was updated successfully, but these errors were encountered: