/// <exception cref="System.IO.IOException"/> public virtual void Close() { bossGroup.ShutdownGracefully(); workerGroup.ShutdownGracefully(); if (sslFactory != null) { sslFactory.Destroy(); } if (externalHttpChannel != null) { externalHttpChannel.Close(); } try { infoServer.Stop(); } catch (Exception e) { throw new IOException(e); } }
public virtual void Close() { allChannels.Close().AwaitUninterruptibly(); bossGroup.ShutdownGracefully(); workerGroup.ShutdownGracefully(); }