-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure streaming ResponseWriters implement Flush
The `http.Flusher` interface isn't part of the `http.ResponseWriter` interface, but it's implemented by the HTTP/1 and HTTP/2 writers provided by the standard library. It's also critical to Connect: streaming handlers must flush messages to ensure that the client receives them. This PR adds a check for unflushable response writers; when the response writer for a streaming procedure can't be flushed, we now return an explicit error instead of hanging. Fixes #393.
- Loading branch information
1 parent
8e45b51
commit 5f70a82
Showing
4 changed files
with
93 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters