File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/me/itzg/helpers/curseforge Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 65
65
import reactor .core .publisher .Flux ;
66
66
import reactor .core .publisher .Mono ;
67
67
import reactor .core .scheduler .Schedulers ;
68
+ import reactor .netty .http .client .PrematureCloseException ;
68
69
import reactor .util .retry .Retry ;
69
70
70
71
@ RequiredArgsConstructor
@@ -753,10 +754,11 @@ private Mono<DownloadOrResolveResult> buildRetryableDownload(InstallContext con
753
754
)
754
755
// retry the deferred part above if one of the expected failure cases
755
756
.retryWhen (
756
- Retry .fixedDelay (BAD_FILE_ATTEMPTS , BAD_FILE_DELAY )
757
+ Retry .backoff (BAD_FILE_ATTEMPTS , BAD_FILE_DELAY )
757
758
.filter (throwable ->
758
759
throwable instanceof FileHashInvalidException ||
759
- throwable instanceof FailedRequestException
760
+ throwable instanceof FailedRequestException ||
761
+ throwable instanceof PrematureCloseException
760
762
)
761
763
.doBeforeRetry (retrySignal ->
762
764
log .warn ("Retrying to download {} @ {}:{}" ,
You can’t perform that action at this time.
0 commit comments