|
|
@@ -89,7 +89,7 @@ class ChatService
|
|
|
$this->timer = Timer::add(15, function () use (&$worker) {
|
|
|
$time_now = time();
|
|
|
foreach ($worker->connections as $connection) {
|
|
|
- if ($time_now - $connection->lastMessageTime > 12) {
|
|
|
+ if ($time_now - $connection->lastMessageTime > 60) {
|
|
|
$this->response->connection($connection)->close('timeout');
|
|
|
}
|
|
|
}
|