this.localAddress = ch.socket().getLocalSocketAddress();
this.serviceAddress = serviceAddress;
this.serviceConfig = serviceConfig;
// Apply the initial session settings
IoSessionConfig sessionConfig = serviceConfig.getSessionConfig();
if (sessionConfig instanceof SocketSessionConfig) {
SocketSessionConfig cfg = (SocketSessionConfig) sessionConfig;
this.config.setKeepAlive(cfg.isKeepAlive());
this.config.setOobInline(cfg.isOobInline());
this.config.setReceiveBufferSize(cfg.getReceiveBufferSize());