Skip to content

Commit 06a727f

Browse files
author
Stephane Landelle
committed
Rename handshakeTimeoutInMillis into handshakeTimeout
1 parent 98b66cb commit 06a727f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

providers/netty/src/main/java/org/asynchttpclient/providers/netty/NettyAsyncHttpProviderConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public void setNettyTimer(Timer nettyTimer) {
247247
this.nettyTimer = nettyTimer;
248248
}
249249

250-
public long getHandshakeTimeoutInMillis() {
250+
public long getHandshakeTimeout() {
251251
return handshakeTimeoutInMillis;
252252
}
253253

providers/netty/src/main/java/org/asynchttpclient/providers/netty/channel/ChannelManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class ChannelManager {
8383
private final Bootstrap webSocketBootstrap;
8484
private final Bootstrap secureWebSocketBootstrap;
8585

86-
private final long handshakeTimeoutInMillis;
86+
private final long handshakeTimeout;
8787

8888
private final ChannelPool channelPool;
8989
private final boolean maxConnectionsEnabled;
@@ -144,7 +144,7 @@ public boolean remove(Object o) {
144144
channel2KeyPool = null;
145145
}
146146

147-
handshakeTimeoutInMillis = nettyConfig.getHandshakeTimeoutInMillis();
147+
handshakeTimeout = nettyConfig.getHandshakeTimeout();
148148

149149
// check if external EventLoopGroup is defined
150150
allowReleaseEventLoopGroup = nettyConfig.getEventLoopGroup() == null;
@@ -356,8 +356,8 @@ public SslHandler createSslHandler(String peerHost, int peerPort) throws IOExcep
356356
}
357357

358358
SslHandler sslHandler = new SslHandler(sslEngine);
359-
if (handshakeTimeoutInMillis > 0)
360-
sslHandler.setHandshakeTimeoutMillis(handshakeTimeoutInMillis);
359+
if (handshakeTimeout > 0)
360+
sslHandler.setHandshakeTimeoutMillis(handshakeTimeout);
361361

362362
return sslHandler;
363363
}

0 commit comments

Comments
 (0)