}
@Override
protected TNonblockingSocket acceptImpl() throws TTransportException
{
TNonblockingSocket tsocket = super.acceptImpl();
if (tsocket == null || tsocket.getSocketChannel() == null)
return tsocket;
Socket socket = tsocket.getSocketChannel().socket();
// Any existing connection we had from this remote socket must be done now, so reset it
ThriftSessionManager.instance.connectionComplete(socket.getRemoteSocketAddress());
try
{
socket.setKeepAlive(this.keepAlive);