mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 22:34:45 +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
|
||||
{
|
||||
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) {
|
||||
$cfId = $exception->response->header('Cf-Ray');
|
||||
$cfCache = $exception->response->header('Cf-Cache-Status');
|
||||
|
Loading…
x
Reference in New Issue
Block a user