From 9483a0392a53d261f8d66aa9765dd32fb3a80403 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 24 Jan 2024 13:58:48 +0200 Subject: [PATCH] reduce socket connection time --- src/Controller/CrontabController.php | 3 ++- src/Controller/ServerController.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Controller/CrontabController.php b/src/Controller/CrontabController.php index 59d37df..21b8f68 100644 --- a/src/Controller/CrontabController.php +++ b/src/Controller/CrontabController.php @@ -141,7 +141,8 @@ class CrontabController extends AbstractController $node->Connect( false === filter_var($server->getHost(), FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) ? $server->getHost() : "[{$server->getHost()}]", - $server->getPort() + $server->getPort(), + 1 ); if ($node->Ping()) diff --git a/src/Controller/ServerController.php b/src/Controller/ServerController.php index efa9f25..5db937a 100644 --- a/src/Controller/ServerController.php +++ b/src/Controller/ServerController.php @@ -104,7 +104,8 @@ class ServerController extends AbstractController $node->Connect( false === filter_var($server->getHost(), FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) ? $server->getHost() : "[{$server->getHost()}]", - $server->getPort() + $server->getPort(), + 1 ); if ($node->Ping())