public void close()
{
if (!isClosed)
{
logger.info(String.format("Session[%d]closed", localHandler.getId()));
SocketConnectionEvent closeEv = new SocketConnectionEvent();
closeEv.status = SocketConnectionEvent.TCP_CONN_CLOSED;
closeEv.addr = proxyAddr.toString();
closeEv.setHash(localHandler.getId());
requestEvent(closeEv);
int sid = null != localHandler ? localHandler.getId() : 0;
sessionTable.remove(sid);
}
if (null != rangeTask)