|
38 | 38 | import io.netty.util.internal.chmv8.ConcurrentHashMapV8;
|
39 | 39 |
|
40 | 40 | import java.io.IOException;
|
41 |
| -import java.security.GeneralSecurityException; |
42 | 41 | import java.util.Map.Entry;
|
43 | 42 | import java.util.concurrent.Semaphore;
|
44 | 43 | import java.util.concurrent.ThreadFactory;
|
|
57 | 56 | import org.asynchttpclient.netty.channel.pool.ChannelPool;
|
58 | 57 | import org.asynchttpclient.netty.channel.pool.DefaultChannelPool;
|
59 | 58 | import org.asynchttpclient.netty.channel.pool.NoopChannelPool;
|
60 |
| -import org.asynchttpclient.netty.handler.HttpProtocol; |
61 | 59 | import org.asynchttpclient.netty.handler.AsyncHttpClientHandler;
|
| 60 | +import org.asynchttpclient.netty.handler.HttpProtocol; |
62 | 61 | import org.asynchttpclient.netty.handler.WebSocketProtocol;
|
63 | 62 | import org.asynchttpclient.netty.request.NettyRequestSender;
|
64 | 63 | import org.asynchttpclient.netty.ssl.DefaultSslEngineFactory;
|
@@ -450,17 +449,16 @@ public SslHandler addSslHandler(ChannelPipeline pipeline, Uri uri, String virtua
|
450 | 449 | }
|
451 | 450 |
|
452 | 451 | /**
|
453 |
| - * Always make sure the channel who got cached support the proper protocol. |
| 452 | + * Always make sure the channel who got cached supports the proper protocol. |
454 | 453 | * It could only occurs when a HttpMethod. CONNECT is used against a proxy
|
455 | 454 | * that requires upgrading from http to https.
|
456 | 455 | */
|
457 | 456 | /**
|
458 | 457 | * @param pipeline the pipeline
|
459 | 458 | * @param uri the uri
|
460 | 459 | * @param virtualHost the virtual host
|
461 |
| - * @throws GeneralSecurityException if creating the SslHandler crashed |
462 | 460 | */
|
463 |
| - public void verifyChannelPipeline(ChannelPipeline pipeline, Uri uri, String virtualHost) throws GeneralSecurityException { |
| 461 | + public void verifyChannelPipeline(ChannelPipeline pipeline, Uri uri, String virtualHost) { |
464 | 462 |
|
465 | 463 | boolean sslHandlerConfigured = isSslHandlerConfigured(pipeline);
|
466 | 464 |
|
|
0 commit comments