forked from quic-go/quic-go
http3: keep datagram receive loop running on datagram for unknown stream (#5136)
This commit is contained in:
@@ -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:])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user