small fix
This commit is contained in:
parent
09746110f5
commit
ba570cd3e2
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user