MCPcopy
hub / github.com/scrapy/scrapy / InactiveStreamClosed

Class InactiveStreamClosed

scrapy/core/http2/stream.py:34–43  ·  view source on GitHub ↗

Connection was closed without sending request headers of the stream. This happens when a stream is waiting for other streams to close and connection is lost.

Source from the content-addressed store, hash-verified

32
33
34class InactiveStreamClosed(ConnectionClosed):
35 """Connection was closed without sending request headers
36 of the stream. This happens when a stream is waiting for other
37 streams to close and connection is lost."""
38
39 def __init__(self, request: Request) -> None:
40 self.request = request
41
42 def __str__(self) -> str:
43 return f"InactiveStreamClosed: Connection was closed without sending the request {self.request!r}"
44
45
46class InvalidHostname(H2Error):

Callers 1

closeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected