mirror of
https://github.com/iterate-ch/cyberduck.git
synced 2026-05-26 19:10:49 +00:00
Always wrap handlers with execution count limiter.
This commit is contained in:
@@ -48,7 +48,6 @@ import ch.cyberduck.core.features.Touch;
|
||||
import ch.cyberduck.core.features.Upload;
|
||||
import ch.cyberduck.core.features.Write;
|
||||
import ch.cyberduck.core.http.CustomServiceUnavailableRetryStrategy;
|
||||
import ch.cyberduck.core.http.ExecutionCountServiceUnavailableRetryStrategy;
|
||||
import ch.cyberduck.core.http.HttpSession;
|
||||
import ch.cyberduck.core.local.BrowserLauncher;
|
||||
import ch.cyberduck.core.local.BrowserLauncherFactory;
|
||||
@@ -82,7 +81,7 @@ public class BrickSession extends HttpSession<CloseableHttpClient> {
|
||||
protected CloseableHttpClient connect(final ProxyFinder proxy, final HostKeyCallback key, final LoginCallback prompt, final CancelCallback cancel) {
|
||||
final HttpClientBuilder configuration = builder.build(proxy, this, prompt);
|
||||
configuration.setServiceUnavailableRetryStrategy(new CustomServiceUnavailableRetryStrategy(host,
|
||||
new ExecutionCountServiceUnavailableRetryStrategy(retryHandler = new BrickUnauthorizedRetryStrategy(this, prompt, cancel))));
|
||||
retryHandler = new BrickUnauthorizedRetryStrategy(this, prompt, cancel)));
|
||||
configuration.addInterceptorLast(retryHandler);
|
||||
configuration.addInterceptorLast(new BrickPreferencesRequestInterceptor());
|
||||
return configuration.build();
|
||||
|
||||
Reference in New Issue
Block a user