< Home

SOCKET/4/ASYNACCEPTFAIL

Message

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])

Description

Failed to allocate the file descriptor to the socket when the Accept function was called to receive the connection request.

Parameters

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.

Possible Causes

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.

Procedure

  1. If the fault is caused by the insufficient memory, cancel some memory-consuming and unnecessary applications.
  2. If the fault is caused by the insufficient file descriptors, cancel some applications that occupy a large number of file descriptors. In this manner, you can release enough file descriptors for current applications.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >