File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/file-share/library/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ const LARGE_FILE_SEGMENT_SIZE = TINY_FILE_SIZE_LIMIT / 10;
124124const LARGE_FILE_TARGET_CHUNK_COUNT = 1024 ;
125125const CHUNK_SIZE_GRANULARITY = 64 * 1024 ;
126126const MAX_LARGE_FILE_SEGMENT_SIZE = TINY_FILE_SIZE_LIMIT - 256 * 1024 ;
127+ const LARGE_FILE_CHUNK_LOOKUP_TIMEOUT_MS = 5 * 60 * 1000 ;
127128const TINY_FILE_SIZE_LIMIT_BIGINT = BigInt ( TINY_FILE_SIZE_LIMIT ) ;
128129
129130const roundUpTo = ( value : number , multiple : number ) =>
@@ -339,7 +340,8 @@ export class LargeFile extends AbstractFile {
339340 timeout ?: number ;
340341 }
341342 ) : Promise < TinyFile > {
342- const totalTimeout = properties ?. timeout ?? 30_000 ;
343+ const totalTimeout =
344+ properties ?. timeout ?? LARGE_FILE_CHUNK_LOOKUP_TIMEOUT_MS ;
343345 const deadline = Date . now ( ) + totalTimeout ;
344346 const attemptTimeout = Math . min ( totalTimeout , 5_000 ) ;
345347 const chunkId = getChunkId ( this . id , index ) ;
You can’t perform that action at this time.
0 commit comments