public void removeCnxn(NIOServerCnxn cnxn) { synchronized(cnxns) { // Remove the related session from the sessionMap. long sessionId = cnxn.getSessionId(); if (sessionId != 0) { sessionMap.remove(sessionId); } // if this is not in cnxns then it's already closed if (!cnxns.remove(cnxn)) { return; } synchronized (ipMap) { Set<NIOServerCnxn> s = ipMap.get(cnxn.getSocketAddress()); s.remove(cnxn); } unregisterConnection(cnxn); } }
long sessionId = getSessionId(); if (sessionId != 0) { pwriter.print(",sid=0x");