From ded6fca6ff2cc1f5e7185f410b8b87f62123f11e Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 12 Mar 2017 11:03:58 +0100 Subject: [PATCH] gbxremote nadeo lib update --- libs/Maniaplanet/DedicatedServer/Xmlrpc/GbxRemote.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/Maniaplanet/DedicatedServer/Xmlrpc/GbxRemote.php b/libs/Maniaplanet/DedicatedServer/Xmlrpc/GbxRemote.php index a84f2b63..50e12499 100755 --- a/libs/Maniaplanet/DedicatedServer/Xmlrpc/GbxRemote.php +++ b/libs/Maniaplanet/DedicatedServer/Xmlrpc/GbxRemote.php @@ -16,8 +16,8 @@ class GbxRemote public static $sent; private $socket; - private $readTimeout = array('sec' => 30, 'usec' => 0); - private $writeTimeout = array('sec' => 30, 'usec' => 0); + private $readTimeout = array('sec' => 5, 'usec' => 0); + private $writeTimeout = array('sec' => 5, 'usec' => 0); private $requestHandle; private $callbacksBuffer = array(); private $multicallBuffer = array(); @@ -85,7 +85,7 @@ class GbxRemote // handshake $header = $this->read(15); if($header === false) - $this->onIoFailure('during handshake'); + $this->onIoFailure(sprintf('during handshake (%s)', socket_strerror(socket_last_error($this->socket)))); extract(unpack('Vsize/a*protocol', $header)); /** @var $size int */