mirror of
https://github.com/datarhei/core.git
synced 2025-10-11 19:00:13 +08:00
Update srt dependency
This commit is contained in:
13
vendor/github.com/datarhei/gosrt/dial.go
generated
vendored
13
vendor/github.com/datarhei/gosrt/dial.go
generated
vendored
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user