fix: accept new streams for both DATA and WINDOW_UPDATE frames with the SYN flag (#702)

* fix: accept new streams for both  and  frames with the  flag

* doc: newsfragment

---------

Co-authored-by: Manu Sheel Gupta <manusheel.edu@gmail.com>
This commit is contained in:
acul71
2025-06-29 10:50:17 +02:00
committed by GitHub
parent 6a92fa26eb
commit ef16f3c993
2 changed files with 2 additions and 1 deletions

View File

@ -493,7 +493,7 @@ class Yamux(IMuxedConn):
f"type={typ}, flags={flags}, stream_id={stream_id},"
f"length={length}"
)
if typ == TYPE_DATA and flags & FLAG_SYN:
if (typ == TYPE_DATA or typ == TYPE_WINDOW_UPDATE) and flags & FLAG_SYN:
async with self.streams_lock:
if stream_id not in self.streams:
stream = YamuxStream(stream_id, self, False)

View File

@ -0,0 +1 @@
align stream creation logic with yamux specification