SOCKET/4/ASYNACCEPTFAIL:Failed to allocate the file describer for the sub socket when accept was called to accept incoming connection request. (Time=[ULONG], TaskName=[STRING], TaskId=[ULONG], SocketId=[ULONG], ErrorCode=[LONG])
Failed to allocate the file descriptor to the socket when the Accept function was called to receive the connection request.
Parameter Name | Parameter Meaning |
---|---|
Time | indicates the time when the log is generated. |
TaskName | indicates the task name. |
TaskId | indicates the task ID. |
SocketId | indicates the socket ID. |
ErrorCode | indicates the error codes, that is, -101, -24, and -55. |
1. Because the system memory was insufficient, namely, the memory was used up or nearly used up, the TCP listening socket could not receive the connection request from the client, and the connection failed.
2. The number of socket connections of the current task exceeds the upper limit (23 x 1024). Therefore, the file descriptor cannot be allocated to the socket, and the connection fails to be set up.