File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -2856,12 +2856,14 @@ class TFile {
28562856 }
28572857
28582858 if ( ! res ) {
2859+ if ( file . fURL2 ) {
2860+ setFileUrl ( true ) ;
2861+ return send_new_request ( ) ;
2862+ }
2863+
28592864 if ( ( first === 0 ) && ( last > 2 ) && ( file . fMaxRanges > 1 ) ) {
28602865 // server return no response with multi request - try to decrease ranges count or fail
2861-
2862- if ( file . fURL2 )
2863- setFileUrl ( true ) ;
2864- else if ( last / 2 > 200 )
2866+ if ( last / 2 > 200 )
28652867 file . fMaxRanges = 200 ;
28662868 else if ( last / 2 > 50 )
28672869 file . fMaxRanges = 50 ;
@@ -2876,11 +2878,6 @@ class TFile {
28762878 return send_new_request ( ) ;
28772879 }
28782880
2879- if ( first_block && file . fURL2 ) {
2880- setFileUrl ( true ) ;
2881- return send_new_request ( ) ;
2882- }
2883-
28842881 return rejectFunc ( Error ( `Fail to read with ${ last / 2 } ranges` ) ) ;
28852882 }
28862883
You can’t perform that action at this time.
0 commit comments