[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14187442#comment-14187442
 ] 

Hongchao Deng commented on ZOOKEEPER-2063:
------------------------------------------

[~iandi]
In the NettyServerCnxnFactory constructor, I replaced
{code}
bootstrap...addLast("servercnxnfactory", ... )
{code}
with
{code}
        bootstrap.setPipelineFactory(new ChannelPipelineFactory() {
            @Override
            public ChannelPipeline getPipeline() throws Exception {
                ChannelPipeline p = Channels.pipeline();
                p.addLast("servercnxnfactory", channelHandler);

                return p;
            }
        });
{code}

In NettyServerCnxnTest, I tried removing
{code}
        nettyServerFactory.bootstrap.getPipeline().remove("servercnxnfactory");
        nettyServerFactory.bootstrap.getPipeline().addLast("servercnxnfactory", 
channelHandler);
{code}
and adding
{code}
        nettyServerFactory.bootstrap.setPipelineFactory(new 
ChannelPipelineFactory() {
            @Override
            public ChannelPipeline getPipeline() throws Exception {
                ChannelPipeline p = Channels.pipeline();
                p.addLast("servercnxnfactory", channelHandler);
                return p;
            }
        });
{code}

But this still didn't work.. Any idea to fix this?

> Netty+SSL support for client-server communication
> -------------------------------------------------
>
>                 Key: ZOOKEEPER-2063
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2063
>             Project: ZooKeeper
>          Issue Type: Bug
>            Reporter: Hongchao Deng
>            Assignee: Hongchao Deng
>
> ZooKeeper currently have netty option on server side. We want to support 
> netty on client side too. After that, we could add ssl support based on netty 
> channel.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to