We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efc74e8 commit ed57208Copy full SHA for ed57208
tests/test_asyncio/test_connection.py
@@ -158,9 +158,9 @@ async def test_connection_disconect_race(parser_class):
158
"""
159
This test reproduces the case in issue #2349
160
where a connection is closed while the parser is reading to feed the
161
- internal buffer.The stremam read() will succeed, but when it returns,
162
- another task hasalready called `disconnect()` and is waiting for
163
- close to finish. When it attempts to feed the buffer, it will fail
+ internal buffer.The stream `read()` will succeed, but when it returns,
+ another task has already called `disconnect()` and is waiting for
+ close to finish. When we attempts to feed the buffer, we will fail
164
since the buffer is no longer there.
165
166
This test verifies that a read in progress can finish even
0 commit comments