Skip to content

util.c: do not set SO_RCVBUF#16

Open
igutidze wants to merge 1 commit intovideolan:masterfrom
igutidze:igutidze-patch-6
Open

util.c: do not set SO_RCVBUF#16
igutidze wants to merge 1 commit intovideolan:masterfrom
igutidze:igutidze-patch-6

Conversation

@igutidze
Copy link
Copy Markdown

The original purpose of setting SO_RCVBUF as stated in the comment was to avoid packet loss, but on high bitrates (e.g. several hundreds of megabits) the newly set buffer size itself becomes the chokepoint, causing packet loss and defeating the original purpose.

Since there's no way to control the buffer size externally or via command-line, avoid setting it altogether and let the user control it via procfs.

The original purpose of setting SO_RCVBUF as stated in the comment was to avoid
packet loss, but on high bitrates (e.g. several hundreds of megabits) the newly
set buffer size itself becomes the chokepoint, causing packet loss and
defeating the original purpose.

Since there's no way to control the buffer size externally or via command-line,
avoid setting it altogether and let the user control it via procfs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant