http3: keep datagram receive loop running on datagram for unknown stream (#5136)

This commit is contained in:
Marten Seemann
2025-05-10 20:41:47 +08:00
committed by GitHub
parent 3f97a011a7
commit 6f8460a821
2 changed files with 4 additions and 4 deletions

View File

@@ -308,11 +308,10 @@ func (c *connection) receiveDatagrams() error {
streamID := protocol.StreamID(4 * quarterStreamID)
c.streamMx.Lock()
dg, ok := c.streams[streamID]
if !ok {
c.streamMx.Unlock()
return nil
}
c.streamMx.Unlock()
if !ok {
continue
}
dg.enqueue(b[n:])
}
}