File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
src/main/java/com/ning/http/client/providers/netty/request Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -266,15 +266,11 @@ private <T> ListenableFuture<T> sendRequestWithNewChannel(//
266
266
ClientBootstrap bootstrap = channelManager .getBootstrap (request .getUri ().getScheme (), useProxy , useSSl );
267
267
268
268
boolean channelPreempted = false ;
269
- Object partitionKey = null ;
269
+ Object partitionKey = future . getPartitionKey () ;
270
270
271
271
try {
272
272
// Do not throw an exception when we need an extra connection for a redirect.
273
273
if (!reclaimCache ) {
274
- // only compute when maxConnectionPerHost is enabled
275
- // FIXME clean up
276
- if (config .getMaxConnectionsPerHost () > 0 )
277
- partitionKey = future .getPartitionKey ();
278
274
channelManager .preemptChannel (partitionKey );
279
275
channelPreempted = true ;
280
276
}
You can’t perform that action at this time.
0 commit comments