Skip to content

Commit 66dffc9

Browse files
committed
initial commit
1 parent 65c5590 commit 66dffc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/s2_sdk/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ async def send_headers(
686686
try:
687687
self._h2.send_headers(stream_id, headers, end_stream=end_stream)
688688
await self._flush_h2_data_and_drain()
689-
except Exception:
689+
except (asyncio.CancelledError, Exception):
690690
self._streams.pop(stream_id, None)
691691
raise
692692
return stream_id

0 commit comments

Comments
 (0)