MCPcopy
hub / github.com/PyMySQL/PyMySQL / _force_close

Method _force_close

pymysql/connections.py:448–458  ·  view source on GitHub ↗

Close connection without QUIT message.

(self)

Source from the content-addressed store, hash-verified

446 return self._sock is not None
447
448 def _force_close(self):
449 """Close connection without QUIT message."""
450 if self._rfile:
451 self._rfile.close()
452 if self._sock:
453 try:
454 self._sock.close()
455 except: # noqa
456 pass
457 self._sock = None
458 self._rfile = None
459
460 __del__ = _force_close
461

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