Fix for SSL example
This commit is contained in:
parent
a78318149e
commit
2d6dbd5a92
@ -44,7 +44,9 @@ public class HttpUploadClientPipelineFactory implements ChannelPipelineFactory {
|
|||||||
SecureChatSslContextFactory.getClientContext().createSSLEngine();
|
SecureChatSslContextFactory.getClientContext().createSSLEngine();
|
||||||
engine.setUseClientMode(true);
|
engine.setUseClientMode(true);
|
||||||
|
|
||||||
pipeline.addLast("ssl", new SslHandler(engine));
|
SslHandler handler = new SslHandler(engine);
|
||||||
|
handler.setIssueHandshake(true);
|
||||||
|
pipeline.addLast("ssl", handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
pipeline.addLast("codec", new HttpClientCodec());
|
pipeline.addLast("codec", new HttpClientCodec());
|
||||||
|
Loading…
Reference in New Issue
Block a user