| ... | ... | @@ -2802,6 +2802,9 @@ pub const AcceptError = error{ |
| 2802 | 2802 | /// by the socket buffer limits, not by the system memory. |
| 2803 | 2803 | SystemResources, |
| 2804 | 2804 | |
| 2805 | /// Socket is not listening for new connections. |
| 2806 | SocketNotListening, |
| 2807 | |
| 2805 | 2808 | ProtocolFailure, |
| 2806 | 2809 | |
| 2807 | 2810 | /// Firewall rules forbid connection. |
| ... | ... | @@ -2870,7 +2873,7 @@ pub fn accept( |
| 2870 | 2873 | EBADF => unreachable, // always a race condition |
| 2871 | 2874 | ECONNABORTED => return error.ConnectionAborted, |
| 2872 | 2875 | EFAULT => unreachable, |
| 2873 | | EINVAL => unreachable, |
| 2876 | EINVAL => return error.SocketNotListening, |
| 2874 | 2877 | ENOTSOCK => unreachable, |
| 2875 | 2878 | EMFILE => return error.ProcessFdQuotaExceeded, |
| 2876 | 2879 | ENFILE => return error.SystemFdQuotaExceeded, |