Fix for unknown FTN when connection is not established, try and catch unknown socket exception during session initialisation
This commit is contained in:
@@ -100,7 +100,15 @@ final class SocketServer {
|
||||
if (($accept = socket_accept($this->server)) === FALSE)
|
||||
throw new SocketException(SocketException::CANT_ACCEPT,socket_strerror(socket_last_error($this->server)));
|
||||
|
||||
$this->handler[0]->{$this->handler[1]}(new SocketClient($accept));
|
||||
try {
|
||||
$r = new SocketClient($accept);
|
||||
|
||||
} catch (\ErrorException $e) {
|
||||
Log::error(sprintf('%s:! Creating Socket client failed? [%s]',self::LOGKEY,$e->getMessage()));
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->handler[0]->{$this->handler[1]}($r);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user