Fix for SSL example

This commit is contained in:
Frédéric Brégier 2012-07-22 19:35:18 +03:00
parent a78318149e
commit 2d6dbd5a92

View File

@ -44,7 +44,9 @@ public class HttpUploadClientPipelineFactory implements ChannelPipelineFactory {
SecureChatSslContextFactory.getClientContext().createSSLEngine();
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());