| ... | ... | @@ -274,6 +274,7 @@ pub const ReadError = error{ |
| 274 | 274 | IsDir, |
| 275 | 275 | OperationAborted, |
| 276 | 276 | BrokenPipe, |
| 277 | ConnectionResetByPeer, |
| 277 | 278 | |
| 278 | 279 | /// This error occurs when no global event loop is configured, |
| 279 | 280 | /// and reading from the file descriptor would block. |
| ... | ... | @@ -320,6 +321,7 @@ pub fn read(fd: fd_t, buf: []u8) ReadError!usize { |
| 320 | 321 | EISDIR => return error.IsDir, |
| 321 | 322 | ENOBUFS => return error.SystemResources, |
| 322 | 323 | ENOMEM => return error.SystemResources, |
| 324 | ECONNRESET => return error.ConnectionResetByPeer, |
| 323 | 325 | else => |err| return unexpectedErrno(err), |
| 324 | 326 | } |
| 325 | 327 | } |