Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit31e7249

Browse files
author
Stephane Landelle
committed
When debug is enabled, Netty ConnectListener erroneously consumes a retry token,closeAsyncHttpClient#436
1 parent16550ec commit31e7249

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/main/java/com/ning/http/client/providers/netty/NettyConnectListener.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
importorg.slf4j.LoggerFactory;
3434

3535
importjavax.net.ssl.HostnameVerifier;
36+
3637
importjava.io.IOException;
3738
importjava.net.ConnectException;
3839
importjava.net.InetSocketAddress;
@@ -85,8 +86,9 @@ public final void operationComplete(ChannelFuture f) throws Exception {
8586
}else {
8687
Throwablecause =f.getCause();
8788

88-
logger.debug("Trying to recover a dead cached channel {} with a retry value of {} ",f.getChannel(),future.canRetry());
89-
if (future.canRetry() &&cause !=null && (NettyAsyncHttpProvider.abortOnDisconnectException(cause)
89+
booleancanRetry =future.canRetry();
90+
logger.debug("Trying to recover a dead cached channel {} with a retry value of {} ",f.getChannel(),canRetry);
91+
if (canRetry &&cause !=null && (NettyAsyncHttpProvider.abortOnDisconnectException(cause)
9092
||causeinstanceofClosedChannelException
9193
||future.getState() !=NettyResponseFuture.STATE.NEW)) {
9294

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp