small fix
This commit is contained in:
parent
09746110f5
commit
ba570cd3e2
@ -153,7 +153,7 @@ class Client
|
|||||||
{
|
{
|
||||||
$xml = $request->getXml();
|
$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
|
// send request
|
||||||
$this->reqhandle++;
|
$this->reqhandle++;
|
||||||
if ($this->protocol == 1)
|
if ($this->protocol == 1)
|
||||||
@ -196,7 +196,7 @@ class Client
|
|||||||
{
|
{
|
||||||
$size = 0;
|
$size = 0;
|
||||||
$recvhandle = 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
|
// Get result
|
||||||
if ($this->protocol == 1)
|
if ($this->protocol == 1)
|
||||||
{
|
{
|
||||||
@ -214,7 +214,8 @@ class Client
|
|||||||
$contents = "";
|
$contents = "";
|
||||||
while(strlen($contents) < 8){
|
while(strlen($contents) < 8){
|
||||||
$newContent = fread($this->socket, 8 - strlen($contents));
|
$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);
|
var_dump("deb1 transport error" . $contents);
|
||||||
throw new FatalException('deb1 transport error - connection interrupted!' . $contents, FatalException::INTERRUPTED);
|
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 = self::MX_KARMA_URL . self::MX_KARMA_STARTSESSION;
|
||||||
$query .= '?serverLogin=' . $serverLogin;
|
$query .= '?serverLogin=' . $serverLogin;
|
||||||
$query .= '&applicationIdentifier=' . urlencode($applicationIdentifier);
|
$query .= '&applicationIdentifier=' . urlencode($applicationIdentifier);
|
||||||
$query .= '&game=sm';
|
|
||||||
$query .= '&testMode=' . $testMode;
|
$query .= '&testMode=' . $testMode;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user