What the heck are these abysmal timeouts; closes #2223
This commit is contained in:
parent
d1a28051f9
commit
95e8492c5d
|
@ -230,6 +230,9 @@ class DaemonFileRepository extends DaemonRepository
|
||||||
'root' => $root ?? '/',
|
'root' => $root ?? '/',
|
||||||
'files' => $files,
|
'files' => $files,
|
||||||
],
|
],
|
||||||
|
// Wait for up to 15 minutes for the archive to be completed when calling this endpoint
|
||||||
|
// since it will likely take quite awhile for large directories.
|
||||||
|
'timeout' => 60 * 15,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
} catch (TransferException $exception) {
|
} catch (TransferException $exception) {
|
||||||
|
|
|
@ -85,8 +85,8 @@ return [
|
||||||
| Configure the timeout to be used for Guzzle connections here.
|
| Configure the timeout to be used for Guzzle connections here.
|
||||||
*/
|
*/
|
||||||
'guzzle' => [
|
'guzzle' => [
|
||||||
'timeout' => env('GUZZLE_TIMEOUT', 5),
|
'timeout' => env('GUZZLE_TIMEOUT', 30),
|
||||||
'connect_timeout' => env('GUZZLE_CONNECT_TIMEOUT', 3),
|
'connect_timeout' => env('GUZZLE_CONNECT_TIMEOUT', 10),
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -4,8 +4,8 @@ import { rawDataToFileObject } from '@/api/transformers';
|
||||||
|
|
||||||
export default async (uuid: string, directory: string, files: string[]): Promise<FileObject> => {
|
export default async (uuid: string, directory: string, files: string[]): Promise<FileObject> => {
|
||||||
const { data } = await http.post(`/api/client/servers/${uuid}/files/compress`, { root: directory, files }, {
|
const { data } = await http.post(`/api/client/servers/${uuid}/files/compress`, { root: directory, files }, {
|
||||||
timeout: 300000,
|
timeout: 60000,
|
||||||
timeoutErrorMessage: 'It looks like this archive is taking a long time to generate. It will appear when completed.',
|
timeoutErrorMessage: 'It looks like this archive is taking a long time to generate. It will appear once completed.',
|
||||||
});
|
});
|
||||||
|
|
||||||
return rawDataToFileObject(data);
|
return rawDataToFileObject(data);
|
||||||
|
|
Loading…
Reference in New Issue