Disables input from the socket. Current or future reads will immediately fail with an error. This is useful to abort operations on a socket that is not making progress due to a peer failure.
| 129 | /// This is useful to abort operations on a socket that is not making |
| 130 | /// progress due to a peer failure. |
| 131 | void close() { |
| 132 | _csi->close(); |
| 133 | _csi.reset(); |
| 134 | } |
| 135 | |
| 136 | /// Get file descriptor |
| 137 | int fd() const { |