Reading up on error-handling
1 deep · digging since may 19
- The occasional `ECONNRESET`
Closing a TCP socket with `shutdown(RD_WR)` or `close()` can cause `ECONNRESET` errors for the peer because data still in flight may be discarded before the receiver finishes reading.