| author | |
| committer | |
| log | a0289d0cce370729099a1ec0228e7f49bcdabc80 |
| tree | 046b795ff2b120dc569ecad880914984ed19ce4c |
| parent | 7d9ad992ab636d51f24125e3ebb046d4333b1f80 |
2 files changed, 5 insertions(+), 1 deletions(-)
lib/std/Io/Threaded.zig+1-1| ... | ... | @@ -3900,7 +3900,7 @@ fn netAcceptPosix(userdata: ?*anyopaque, listen_fd: net.Socket.Handle) net.Serve |
| 3900 | 3900 | .BADF => |err| return errnoBug(err), // File descriptor used after closed. |
| 3901 | 3901 | .CONNABORTED => return error.ConnectionAborted, |
| 3902 | 3902 | .FAULT => |err| return errnoBug(err), |
| 3903 | .INVAL => |err| return errnoBug(err), | |
| 3903 | .INVAL => return error.SocketNotListening, | |
| 3904 | 3904 | .NOTSOCK => |err| return errnoBug(err), |
| 3905 | 3905 | .MFILE => return error.ProcessFdQuotaExceeded, |
| 3906 | 3906 | .NFILE => return error.SystemFdQuotaExceeded, |
lib/std/Io/net.zig+4| ... | ... | @@ -1333,6 +1333,10 @@ pub const Server = struct { |
| 1333 | 1333 | /// Not enough free memory. This often means that the memory allocation is limited |
| 1334 | 1334 | /// by the socket buffer limits, not by the system memory. |
| 1335 | 1335 | SystemResources, |
| 1336 | /// Either `listen` was never called, or `shutdown` was called (possibly while | |
| 1337 | /// this call was blocking). This allows `shutdown` to be used as a concurrent | |
| 1338 | /// cancellation mechanism. | |
| 1339 | SocketNotListening, | |
| 1336 | 1340 | /// The network subsystem has failed. |
| 1337 | 1341 | NetworkDown, |
| 1338 | 1342 | /// No connection is already queued and ready to be accepted, and |