MCPcopy
hub / github.com/scrapy/scrapy / _lose_connection_with_error

Method _lose_connection_with_error

scrapy/core/http2/protocol.py:264–269  ·  view source on GitHub ↗

Helper function to lose the connection with the error sent as a reason

(self, errors: list[BaseException])

Source from the content-addressed store, hash-verified

262 self._write_to_transport()
263
264 def _lose_connection_with_error(self, errors: list[BaseException]) -> None:
265 """Helper function to lose the connection with the error sent as a
266 reason"""
267 self._conn_lost_errors.extend(errors)
268 assert self.transport is not None # typing
269 self.transport.loseConnection()
270
271 def handshakeCompleted(self) -> None:
272 """

Callers 4

handshakeCompletedMethod · 0.95
dataReceivedMethod · 0.95
timeoutConnectionMethod · 0.95
connection_terminatedMethod · 0.95

Calls 1

extendMethod · 0.45

Tested by

no test coverage detected