You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2019/05/28 08:38:08 UTC

[GitHub] [bookkeeper] luoxn28 opened a new issue #2104: why BookieNettyServer’s parentGroup and childGroup is same EventLoopGroup?

luoxn28 opened a new issue #2104: why BookieNettyServer’s parentGroup and childGroup is same EventLoopGroup?
URL: https://github.com/apache/bookkeeper/issues/2104
 
 
   **QUESTION**
   as code, If use independent EventLoopGroup, connect event and write/read event  don't interact other. so, why  BookieNettyServer’s parentGroup and childGroup is same EventLoopGroup?
   ```java
   private void listenOn(InetSocketAddress address, BookieSocketAddress bookieAddress) throws InterruptedException {
           if (!conf.isDisableServerSocketBind()) {
               ServerBootstrap bootstrap = new ServerBootstrap();
               bootstrap.option(ChannelOption.ALLOCATOR, allocator);
               bootstrap.childOption(ChannelOption.ALLOCATOR, allocator);
               bootstrap.group(eventLoopGroup, eventLoopGroup); // <-----
   // ...
   ```
   Looking forward to your reply, thans.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services