Commit cd95699
committed
prefer
Use `errors.Is(err, net.ErrClosed)` in `ClosableListeners.forwardTCP`.
Since golang/go#4373 has been fixed.
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>errors.Is(err, net.ErrClosed) over detecting "use of closed network connection"1 parent 6c5ee21 commit cd95699
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | | - | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
0 commit comments