You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when dealing with a UnixServer, its connections do not return a value for getRemoteAddress, the returned value is actually NULL.
I`d like it to return the PID of the connecting client. Is that something you would integrate in this library?
public function getRemoteAddress()
{
if($this->unix){
$socket = socket_import_stream($this->stream);
return socket_get_option($socket, SOL_SOCKET, 17 /*SO_PEERCRED*/);
}
return $this->parseAddress(@stream_socket_get_name($this->stream, true));
}