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 5543ec1 commit 8ff0bbbCopy full SHA for 8ff0bbb
httpx/concurrency/trio.py
@@ -78,7 +78,11 @@ async def write(
78
# Reset before recursive call, otherwise we'll go through
79
# this branch indefinitely.
80
self.write_buffer = b""
81
- await self.write(previous_data, timeout=timeout, flag=flag)
+ try:
82
+ await self.write(previous_data, timeout=timeout, flag=flag)
83
+ except WriteTimeout:
84
+ self.writer_buffer = previous_data
85
+ raise
86
87
if not data:
88
return
0 commit comments