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

Method handle_close

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

Source from the content-addressed store, hash-verified

76 self.baseclass.last_received_data += new_data
77
78 def handle_close(self):
79 # XXX: this method can be called many times in a row for a single
80 # connection, including in clear-text (non-TLS) mode.
81 # (behaviour witnessed with test_data_connection)
82 if not self.dtp_conn_closed:
83 self.baseclass.push('226 transfer complete')
84 self.shutdown()
85 self.dtp_conn_closed = True
86
87 def push(self, what):
88 if self.baseclass.next_data is not None:

Callers 4

_do_ssl_handshakeMethod · 0.45
recvMethod · 0.45
_do_tls_handshakeMethod · 0.45
handle_readMethod · 0.45

Calls 2

shutdownMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected