Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net: return typed error for closed network connections #5062
Package net returns an internal error var when a connection was closed: var errClosing = errors.New("use of closed network connection") To check for that error, currently the error text has to be parsed. It would be much better be able to check for a defined error type.