From ba570cd3e2ff9d5df59d4311fc2e0b17f7f7ff5b Mon Sep 17 00:00:00 2001 From: kremsy Date: Wed, 5 Mar 2014 20:56:08 +0100 Subject: [PATCH] small fix --- .../Libs/Maniaplanet/DedicatedServer/Xmlrpc/Client.php | 7 ++++--- application/plugins/Karma.php | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/core/Libs/Maniaplanet/DedicatedServer/Xmlrpc/Client.php b/application/core/Libs/Maniaplanet/DedicatedServer/Xmlrpc/Client.php index 406c60ed..75b0c174 100644 --- a/application/core/Libs/Maniaplanet/DedicatedServer/Xmlrpc/Client.php +++ b/application/core/Libs/Maniaplanet/DedicatedServer/Xmlrpc/Client.php @@ -153,7 +153,7 @@ class Client { $xml = $request->getXml(); - @stream_set_timeout($this->socket, 0, $this->timeout * 1000 * 100); + @stream_set_timeout($this->socket, 0, $this->timeout * 1000 * 200); // send request $this->reqhandle++; if ($this->protocol == 1) @@ -196,7 +196,7 @@ class Client { $size = 0; $recvhandle = 0; - @stream_set_timeout($this->socket, 0, $this->timeout * 1000 * 100); + @stream_set_timeout($this->socket, 0, $this->timeout * 1000 * 200); // Get result if ($this->protocol == 1) { @@ -214,7 +214,8 @@ class Client $contents = ""; while(strlen($contents) < 8){ $newContent = fread($this->socket, 8 - strlen($contents)); - if($newContent === false){ + var_dump($contents, $newContent, strlen($contents)); + if(strlen($newContent) == 0){ var_dump("deb1 transport error" . $contents); throw new FatalException('deb1 transport error - connection interrupted!' . $contents, FatalException::INTERRUPTED); } diff --git a/application/plugins/Karma.php b/application/plugins/Karma.php index cb315096..3c5d5cfb 100644 --- a/application/plugins/Karma.php +++ b/application/plugins/Karma.php @@ -576,7 +576,6 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { $query = self::MX_KARMA_URL . self::MX_KARMA_STARTSESSION; $query .= '?serverLogin=' . $serverLogin; $query .= '&applicationIdentifier=' . urlencode($applicationIdentifier); - $query .= '&game=sm'; $query .= '&testMode=' . $testMode;