Browse Source

reduce socket connection time

main
ghost 10 months ago
parent
commit
9483a0392a
  1. 3
      src/Controller/CrontabController.php
  2. 3
      src/Controller/ServerController.php

3
src/Controller/CrontabController.php

@ -141,7 +141,8 @@ class CrontabController extends AbstractController @@ -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())

3
src/Controller/ServerController.php

@ -104,7 +104,8 @@ class ServerController extends AbstractController @@ -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())

Loading…
Cancel
Save