Ver Fonte

Merge pull request #32430 from overleaf/ar-add-some-explicit-timeouts

[web] add some explicit timeouts

GitOrigin-RevId: 29ff0830796eacdc08645bc61a71b22c4148a393
Andrew Rumble há 4 meses atrás
pai
commit
0059928f24

+ 1 - 0
services/web/app/src/Features/History/HistoryManager.mjs

@@ -194,6 +194,7 @@ async function requestBlob(historyId, hash, method = 'GET', range = '') {
   try {
     ;({ stream, response } = await fetchStreamWithResponse(url, {
       ...opts,
+      signal: AbortSignal.timeout(10 * 60 * 1000),
       basicAuth: {
         user: settings.apis.v1_history.user,
         password: settings.apis.v1_history.pass,