git.cweiske.de
/
auerswald-callnotifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sleep before reconnecting
[auerswald-callnotifier.git]
/
src
/
callnotifier
/
Source
/
Remote.php
diff --git
a/src/callnotifier/Source/Remote.php
b/src/callnotifier/Source/Remote.php
index 4145c59e8b7041469746d024ad09d71a03897198..be7604f357f0513b81b9fbb16f17c403ee0f43a1 100644
(file)
--- a/
src/callnotifier/Source/Remote.php
+++ b/
src/callnotifier/Source/Remote.php
@@
-19,8
+19,11
@@
class Source_Remote
$this->connect($this->config->host, $this->config->port);
$this->init();
$this->loop();
$this->connect($this->config->host, $this->config->port);
$this->init();
$this->loop();
- } catch (
\
Exception_ConnectionReset $e) {
+ } catch (Exception_ConnectionReset $e) {
$tryAgain = true;
$tryAgain = true;
+ //connection is refused directly after a connection reset
+ //hopefully waiting a bit will help
+ sleep(10);
}
} while ($tryAgain);
$this->disconnect();
}
} while ($tryAgain);
$this->disconnect();