extend udpReadBufferSize to WebRTC UDP sockets (#5130)
Some checks failed
code_lint / go (push) Has been cancelled
code_lint / go_mod (push) Has been cancelled
code_lint / docs (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_e2e (push) Has been cancelled

this allows to decrease packet losses without touching system parameters.
This commit is contained in:
Alessandro Ros 2025-10-29 11:45:15 +01:00 committed by GitHub
parent adc4a6ceb6
commit 1ef5db5b3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 96 additions and 33 deletions

View file

@ -27,8 +27,9 @@ type parent interface {
// Source is a WebRTC static source.
type Source struct {
ReadTimeout conf.Duration
Parent parent
ReadTimeout conf.Duration
UDPReadBufferSize uint
Parent parent
}
// Log implements logger.Writer.
@ -58,7 +59,8 @@ func (s *Source) Run(params defs.StaticSourceRunParams) error {
Timeout: time.Duration(s.ReadTimeout),
Transport: tr,
},
Log: s,
UDPReadBufferSize: s.UDPReadBufferSize,
Log: s,
}
err = client.Initialize(params.Context)
if err != nil {