MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / _force_close

Method _force_close

pymysql/connections.py:453–463  ·  view source on GitHub ↗

Close connection without QUIT message.

(self)

Source from the content-addressed store, hash-verified

451 return self._sock is not None
452
453 def _force_close(self):
454 """Close connection without QUIT message."""
455 if self._rfile:
456 self._rfile.close()
457 if self._sock:
458 try:
459 self._sock.close()
460 except: # noqa
461 pass
462 self._sock = None
463 self._rfile = None
464
465 __del__ = _force_close
466

Callers 6

closeMethod · 0.95
connectMethod · 0.95
_read_packetMethod · 0.95
_read_bytesMethod · 0.95
_write_bytesMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by 1