-
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 server arbitrarily finishes requests #580
Labels
Comments
I can't make sense of what you're trying to do. The web server assumes, quite reasonably, that when the handler returns, the request is done being handled. HTTP is a synchronous protocol, one request at a time on the wire; there's no other possible implementation. If there are multiple connections then there will be multiple handlers executing in parallel and they can do whatever "real time web apps" need to do. Leaving open because the documentation should be clearer about the fact that the handler returning signals that the request is done. Labels changed: added documentation. Owner changed to r...@golang.org. Status changed to Accepted. |
The real test should be whether, if the Handler doesn't return and doesn't call .Close(), but calls Conn.Flush() periodically, does the http.Response return from http.Get() immediately after the first flush, and then does Body.Read() keep reading all the data (not just data from the first flush). |
This issue was closed by revision 58d5d6f. Status changed to Fixed. Merged into issue #-. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: