time adjustments

This commit is contained in:
kremsy 2014-03-01 10:46:28 +01:00 committed by Steffen Schröder
parent fdab04e7ea
commit 98b146f51d
2 changed files with 6 additions and 2 deletions

View File

@ -153,7 +153,7 @@ class Client
{
$xml = $request->getXml();
@stream_set_timeout($this->socket, 0, $this->timeout * 1000 * 10);
@stream_set_timeout($this->socket, 0, $this->timeout * 1000 * 100);
// 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 * 10);
@stream_set_timeout($this->socket, 0, $this->timeout * 1000 * 50);
// Get result
if ($this->protocol == 1)
{

View File

@ -325,6 +325,10 @@ class ManiaControl implements CommandListener, TimerListener {
$this->callbackManager->manageCallbacks();
} catch(FatalException $e) {
//TODO remove
if($this->errorHandler){
$this->errorHandler->triggerDebugNotice("Fatal Exception: " . $e->getMessage() . " tracestring " . $e->getTraceAsString());
}
$this->quit($e->getMessage());
}