-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http2: close client connections after receiving GOAWAY
Once a connection has received a GOAWAY from the server, close it after the last outstanding request on the connection completes. We're lax about when we call ClientConn.closeConn, frequently closing the underlying net.Conn multiple times. Stop propagating errors on closing the net.Conn up through ClientConn.Close and ClientConn.Shutdown, since these errors are likely to be caused by double-closing the connection rather than a real fault. Fixes golang/go#39752. Change-Id: I06d59e6daa6331c3091e1d49cdbeac313f17e6bd Reviewed-on: https://go-review.googlesource.com/c/net/+/429060 TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Run-TryBot: Damien Neil <[email protected]>
- Loading branch information
1 parent
3a96036
commit 1e53447
Showing
2 changed files
with
77 additions
and
11 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