mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-01 04:08:59 +02:00
set lower timeout for server details request
This commit is contained in:
parent
af9f2c653e
commit
cf385710f3
@ -19,7 +19,7 @@ class DaemonServerRepository extends DaemonRepository
|
|||||||
public function getDetails(): array
|
public function getDetails(): array
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
return $this->getHttpClient()->get("/api/servers/{$this->server->uuid}")->throw()->json();
|
return $this->getHttpClient()->connectTimeout(1)->timeout(1)->get("/api/servers/{$this->server->uuid}")->throw()->json();
|
||||||
} catch (RequestException $exception) {
|
} catch (RequestException $exception) {
|
||||||
$cfId = $exception->response->header('Cf-Ray');
|
$cfId = $exception->response->header('Cf-Ray');
|
||||||
$cfCache = $exception->response->header('Cf-Cache-Status');
|
$cfCache = $exception->response->header('Cf-Cache-Status');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user