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 @@ -2870,12 +2870,14 @@ class TFile {
28702870 }
28712871
28722872 if ( ! res ) {
2873+ if ( file . fURL2 ) {
2874+ setFileUrl ( true ) ;
2875+ return send_new_request ( ) ;
2876+ }
2877+
28732878 if ( ( first === 0 ) && ( last > 2 ) && ( file . fMaxRanges > 1 ) ) {
28742879 // server return no response with multi request - try to decrease ranges count or fail
2875-
2876- if ( file . fURL2 )
2877- setFileUrl ( true ) ;
2878- else if ( last / 2 > 200 )
2880+ if ( last / 2 > 200 )
28792881 file . fMaxRanges = 200 ;
28802882 else if ( last / 2 > 50 )
28812883 file . fMaxRanges = 50 ;
@@ -2890,11 +2892,6 @@ class TFile {
28902892 return send_new_request ( ) ;
28912893 }
28922894
2893- if ( first_block && file . fURL2 ) {
2894- setFileUrl ( true ) ;
2895- return send_new_request ( ) ;
2896- }
2897-
28982895 return rejectFunc ( Error ( `Fail to read with ${ last / 2 } ranges` ) ) ;
28992896 }
29002897
You can’t perform that action at this time.
0 commit comments