You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following golang/go#4373, programmers who want to check
against errors about closed network connections should use
errors.Is and not inspect the error text.
So, in Go 1.16 and later this pattern
(from the current code
in golang.org/x/net/http2/server.go)
should be flagged:
if strings.Contains(str, "use of closed network connection") {
return true
}
The text was updated successfully, but these errors were encountered:
Following golang/go#4373, programmers who want to check against errors about closed network connections should use
errors.Is
and not inspect the error text. So, in Go 1.16 and later this pattern (from the current code ingolang.org/x/net/http2/server.go
) should be flagged:The text was updated successfully, but these errors were encountered: