A free open source IT asset/license management system
Bumped timeout up to 300 on sync adapters
snipe73ca42570bdf
diff --git a/app/SyncAdapters/CustomHttp/CustomHttpAdapter.php b/app/SyncAdapters/CustomHttp/CustomHttpAdapter.phpindex 9a34cd1c19..d04228103a 100644--- a/app/SyncAdapters/CustomHttp/CustomHttpAdapter.php+++ b/app/SyncAdapters/CustomHttp/CustomHttpAdapter.php@@ -527,7 +527,7 @@ class CustomHttpAdapter extends SyncAdapter implements PushableAdapter*/private function dispatchPushRequest(string $method, string $endpoint, array $payload, array $touched): void{- $request = $this->applyAuth(Http::withOptions(['allow_redirects' => false])->acceptJson()->timeout(30));+ $request = $this->applyAuth(Http::withOptions(['allow_redirects' => false])->acceptJson()->timeout(300));try {$request->send($method, $endpoint, ['json' => $payload])->throw();@@ -763,7 +763,7 @@ class CustomHttpAdapter extends SyncAdapter implements PushableAdapter$endpoint = $baseUrl.$pullPath;}- $request = Http::withOptions(['allow_redirects' => false])->acceptJson()->timeout(30);+ $request = Http::withOptions(['allow_redirects' => false])->acceptJson()->timeout(300);$request = $this->applyAuth($request);// ->throw() propagates on non-2xx so the controller can catch