Policy Server :: Error : Socket Error 22

Document ID : KB000049358
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

What it the meaning of Socket Error 22?

Solution:

Socket Error 22 is invalid argument.

The error is coming from the function call getpeername. This function is used to get the socket information from the client that is connecting to the Policy Server and requires it to access the network to get the information. In this case it failed with the error 22. The reasons that this function can return this error are:

If the socket is not valid;
The call is being blocked and cannot get to the client who opened it;
The client has closed/is closing the socket at the time of the call.