Skip to content

Commit

Permalink
Issue jetty#8753 - Fix HttpClient initialization with destinationIdle…
Browse files Browse the repository at this point in the history
…Timeout set.

Signed-off-by: Jan Vojt <jan@vojt.net>
  • Loading branch information
janvojt committed Oct 21, 2022
1 parent 9e4e680 commit 6be29c8
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,13 @@ protected void doStart() throws Exception
if (getBean(RetainableByteBufferPool.class) == null)
addBean(new ArrayRetainableByteBufferPool(0, 2048, 65536, maxBucketSize));
Scheduler scheduler = getScheduler();
if (scheduler == null)
setScheduler(new ScheduledExecutorScheduler(name + "-scheduler", false));
if (scheduler == null) {
scheduler = new ScheduledExecutorScheduler(name + "-scheduler", false);
setScheduler(scheduler);
}

if (resolver == null)
setSocketAddressResolver(new SocketAddressResolver.Async(getExecutor(), getScheduler(), getAddressResolutionTimeout()));
setSocketAddressResolver(new SocketAddressResolver.Async(getExecutor(), scheduler, getAddressResolutionTimeout()));

handlers.put(new ContinueProtocolHandler());
handlers.put(new RedirectProtocolHandler(this));
Expand Down

0 comments on commit 6be29c8

Please sign in to comment.