MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / maybe_close

Method maybe_close

sshuttle/ssnet.py:544–549  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

542 self.maybe_close()
543
544 def maybe_close(self):
545 if self.shut_read and self.shut_write:
546 debug2('%r: closing connection' % self)
547 # remove the mux's reference to us. The python garbage collector
548 # will then be able to reap our object.
549 self.mux.channels[self.channel] = None
550
551 def too_full(self):
552 return self.mux.too_full

Callers 2

setnoreadMethod · 0.95
setnowriteMethod · 0.95

Calls 1

debug2Function · 0.90

Tested by

no test coverage detected