You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/11/29 04:05:11 UTC

[GitHub] [rocketmq] mrhbj opened a new pull request #3546: optimization remove name handler(#3545)

mrhbj opened a new pull request #3546:
URL: https://github.com/apache/rocketmq/pull/3546


     NettyRemotingClient.java 
      Bootstrap handler = this.bootstrap.group(this.eventLoopGroupWorker).channel(NioSocketChannel.class)
           .option(ChannelOption.TCP_NODELAY, true)
           .option(ChannelOption.SO_KEEPALIVE, false)
           .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, nettyClientConfig.getConnectTimeoutMillis())
           .option(ChannelOption.SO_SNDBUF, nettyClientConfig.getClientSocketSndBufSize())
           .option(ChannelOption.SO_RCVBUF, nettyClientConfig.getClientSocketRcvBufSize())
           .handler(new ChannelInitializer<SocketChannel>() {
               @Override
               public void initChannel(SocketChannel ch) throws Exception {
                   ChannelPipeline pipeline = ch.pipeline();
                   if (nettyClientConfig.isUseTLS()) {
                       if (null != sslContext) {
                           pipeline.addFirst(defaultEventExecutorGroup, "sslHandler", sslContext.newHandler(ch.alloc()));
                           log.info("Prepend SSL handler");
                       } else {
                           log.warn("Connections are insecure as SSLContext is null!");
                       }
                   }
                   pipeline.addLast(
                       defaultEventExecutorGroup,
                       new NettyEncoder(),
                       new NettyDecoder(),
                       new IdleStateHandler(0, 0, nettyClientConfig.getClientChannelMaxIdleTimeSeconds()),
                       new NettyConnectManageHandler(),
                       new NettyClientHandler());
               }
           });
   Bootstrap handler Is it necessary? because it look like not used this handler name!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] mrhbj closed pull request #3546: optimization remove name handler(#3545)

Posted by GitBox <gi...@apache.org>.
mrhbj closed pull request #3546:
URL: https://github.com/apache/rocketmq/pull/3546


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] coveralls commented on pull request #3546: optimization remove name handler(#3545)

Posted by GitBox <gi...@apache.org>.
coveralls commented on pull request #3546:
URL: https://github.com/apache/rocketmq/pull/3546#issuecomment-981280019


   
   [![Coverage Status](https://coveralls.io/builds/44588061/badge)](https://coveralls.io/builds/44588061)
   
   Coverage increased (+0.04%) to 54.421% when pulling **1ad4298ca39e6c52b2360402b6b6a71cf3aab441 on mrhbj:optimization-nettyremotingclient** into **a75c74234915f1673c635639e6a70e4c25dcd740 on apache:master**.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org