def close(self): try: if self.source: self.source.shutdown(0) except: pass self.source = None try: if self.remoteSocket: DDDProxySocketMessage.end(self.remoteSocket) except: pass try: if self.remoteSocket: self.remoteSocket.shutdown(0) except: pass self.remoteSocket = None
def close(self): try: if self.orignConn: self.orignConn.shutdown(0) self.orignConn = None except: pass try: if self.localProxy: DDDProxySocketMessage.end(self.localProxy) except: pass try: if self.localProxy: self.localProxy.shutdown(0) self.localProxy = None except: pass self.lock.put("close")