+
+ b.option(ChannelOption.SO_BACKLOG, 128);
+ if (LocalServerChannel.class.equals(channelClass) == false) {
+ // makes no sense for LocalServer and produces warning
+ b.childOption(ChannelOption.SO_KEEPALIVE, true);
+ }
+ customizeBootstrap(b);
+
+ if (b.group() == null) {
+ b.group(bossGroup, workerGroup);
+ }
+ try {
+ b.channel(channelClass);
+ } catch (IllegalStateException e) {
+ // FIXME: if this is ok, document why
+ LOG.trace("Not overriding channelFactory on bootstrap {}", b, e);
+ }