We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b20cd59 commit e0324fcCopy full SHA for e0324fc
http2/server.go
@@ -732,11 +732,7 @@ func isClosedConnError(err error) bool {
732
return false
733
}
734
735
- // TODO: remove this string search and be more like the Windows
736
- // case below. That might involve modifying the standard library
737
- // to return better error types.
738
- str := err.Error()
739
- if strings.Contains(str, "use of closed network connection") {
+ if errors.Is(err, net.ErrClosed) {
740
return true
741
742
0 commit comments