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