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

Method abort

Lib/asyncio/sslproto.py:243–250  ·  view source on GitHub ↗

Close the transport immediately. Buffered data will be lost. No more data will be received. The protocol's connection_lost() method will (eventually) be called with None as its argument.

(self)

Source from the content-addressed store, hash-verified

241 return False
242
243 def abort(self):
244 """Close the transport immediately.
245
246 Buffered data will be lost. No more data will be received.
247 The protocol's connection_lost() method will (eventually) be
248 called with None as its argument.
249 """
250 self._force_close(None)
251
252 def _force_close(self, exc):
253 self._closed = True

Callers

nothing calls this directly

Calls 1

_force_closeMethod · 0.95

Tested by

no test coverage detected