MCPcopy Index your code
hub / github.com/python/cpython / shutdown

Method shutdown

Lib/test/test_ftplib.py:432–437  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

430 default_error_handler()
431
432 def shutdown(self):
433 if (isinstance(self.socket, ssl.SSLSocket) and
434 self.socket._sslobj is not None):
435 self._do_ssl_shutdown()
436 else:
437 self.close()
438
439
440 class DummyTLS_DTPHandler(SSLConnection, DummyDTPHandler):

Callers 15

test_shutdown_emptyMethod · 0.45
_shutdown_threadMethod · 0.45
_shutdown_getMethod · 0.45
_shutdown_putMethod · 0.45
_shutdown_joinMethod · 0.45
_shutdown_put_joinMethod · 0.45

Calls 2

_do_ssl_shutdownMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected