fixed potentially skipping offer in PCTransport

this could explain the "missing" track problem when the server fails to send some tracks to some of the subscribers
This commit is contained in:
David Zhao
2021-06-09 16:06:10 -07:00
parent b10d903d3e
commit b3e6bd10cf
3 changed files with 60 additions and 17 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ func checkUDPReadBuffer() (int, error) {
return 0, err
}
defer func() { _ = conn.Close() }()
_ = conn.SetReadBuffer(minUDPBufferSize)
_ = conn.SetReadBuffer(defaultUDPBufferSize)
fd, err := conn.File()
if err != nil {
return 0, nil