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 3bd4fc8 commit 0eeb531Copy full SHA for 0eeb531
CHANGELOG.rst
@@ -8,6 +8,9 @@
8
**Misc**
9
- Support for PyPy 3.11
10
11
+**Fixed**
12
+- Asyncio Protocol may raise AssertionError upon closing if the FIN bit was already sent in a given stream.s
13
+
14
1.4.1 (2025-02-05)
15
====================
16
qh3/asyncio/protocol.py
@@ -254,4 +254,7 @@ def close(self):
254
return # Defensive:
255
if self.stream_id in self.protocol._quic._streams_finished:
256
257
- self.protocol._quic.send_stream_data(self.stream_id, b"", True)
+ try:
258
+ self.protocol._quic.send_stream_data(self.stream_id, b"", True)
259
+ except AssertionError:
260
+ pass # Defensive: avoid duplicate call (FIN bit may already be set!)
0 commit comments