Update srt dependency

This commit is contained in:
Ingo Oppermann
2022-07-08 20:06:28 +02:00
parent b7680978f8
commit 669effd680
10 changed files with 268 additions and 12 deletions

View File

@@ -167,7 +167,12 @@ func Dial(network, address string, config Config) (Conn, error) {
continue
}
dl.rcvQueue <- p
// non-blocking
select {
case dl.rcvQueue <- p:
default:
dl.log("dial", func() string { return "receive queue is full" })
}
}
}()
@@ -285,7 +290,11 @@ func (dl *dialer) writer(ctx context.Context) {
case p := <-dl.sndQueue:
data.Reset()
p.Marshal(&data)
if err := p.Marshal(&data); err != nil {
p.Decommission()
dl.log("packet:send:error", func() string { return "marshalling packet failed" })
continue
}
buffer := data.Bytes()