Added timeout to services

Fixes #775.
This commit is contained in:
TimZ99 2019-09-25 23:35:37 +02:00
parent 8342a979aa
commit 4ebe934b2e
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ class StatusUpdater {
// save response time
$starttime = microtime(true);
$fp = @fsockopen($this->server['ip'], $this->server['port'], $errno, $this->error, 10);
$fp = @fsockopen($this->server['ip'], $this->server['port'], $errno, $this->error, $this->server['timeout']);
$status = ($fp === false) ? false : true;
$this->rtime = (microtime(true) - $starttime);