Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle net.Error Temporary() deprecation
See https://go.dev/issue/45729. - Remove hideTempError The hideTempError function was used to prevent connection methods from returning a net.Error with Temporary() == true. Connection methods do not support retry after returning any net.Error, including errors with Temporary() == true. Presumably hideTempError was used to prevent applications from futilely retrying connection method calls on temporary errors. The hideTempError function is not needed now that net.Error Temporary() is deprecated. - Remove use of the deprecated net.Error Temporary() method in the default ping handler by ignoring all errors returned from WriteControl. Ignoring errors allows the application to continue reading messages after a write error and is consistent with how the default close handler calls WriteControl.
- Loading branch information