Closed hashbrowncipher closed 1 month ago
I have been able to work around the issue with this patch:
diff --git a/aiohttp/client_proto.py b/aiohttp/client_proto.py
index db22406c..34335b81 100644
--- a/aiohttp/client_proto.py
+++ b/aiohttp/client_proto.py
@@ -148,7 +148,8 @@ class ResponseHandler(BaseProtocol,
self._skip_payload = skip_payload
self._read_timeout = read_timeout
- self._reschedule_timeout()
+ if self._read_timeout_handle is not None:
+ self._reschedule_timeout()
self._parser = HttpResponseParser(
self, self._loop, timer=timer,
Is this still an issue for you? The reproducer seems to work fine for me today.
π Describe the bug
When the client is slow to produce a payload, a ServerTimeoutError is reported. The documentation defines the
Timeout.sock_read
tunable asA timeout for reading a portion of data from a peer
. We were not reading from the peer when the timeout was raised.π‘ To Reproduce
π‘ Expected behavior
No error should be raised. For users wanting to monitor the progress of Payload transmission, a separate tunable can be provided for this purpose.