We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8994e5a commit 028ede3Copy full SHA for 028ede3
providers/netty/src/main/java/org/asynchttpclient/providers/netty/channel/pool/DefaultChannelPool.java
@@ -15,6 +15,7 @@
15
16
import static org.asynchttpclient.util.DateUtils.millisTime;
17
import io.netty.channel.Channel;
18
+import io.netty.handler.ssl.SslHandler;
19
import io.netty.util.Timeout;
20
import io.netty.util.Timer;
21
import io.netty.util.TimerTask;
@@ -242,7 +243,7 @@ private ConcurrentLinkedQueue<IdleChannel> getPoolForKey(String key) {
242
243
* {@inheritDoc}
244
*/
245
public boolean offer(Channel channel, String poolKey) {
- if (isClosed.get() || (!sslConnectionPoolEnabled && poolKey.startsWith("https")))
246
+ if (isClosed.get() || (!sslConnectionPoolEnabled && channel.pipeline().get(SslHandler.class) != null))
247
return false;
248
249
long now = millisTime();
0 commit comments