DescriptionCast: set UDP socket send buffer size via options
On Windows the default UDP send buffer size is 8192. OSX default is
9216. On Linux default is 212992. The values are too small on Windows
and OSX. This cannot make good use of the A-MPDU of 802.11n (64KB),
which is the most common network for Cast Streaming.
We have also seen strong evidence that the default buffer size is
limiting, e.g. long packet queuing delay on Windows, p2p socket seeing
a lot of EWOULDBLOCKs.
This code uses pacer maximum burst size (in bytes) as the send buffer
size. Also added an option "send_buffer_min_size" to allow application
to choose an even larger value for send buffer size.
BUG=423545
Committed: https://crrev.com/482d3eb1b6b8da044304ca4bc89d9c0b0764e218
Cr-Commit-Position: refs/heads/master@{#300183}
Patch Set 1 #Patch Set 2 : multiply by ip packet size #Patch Set 3 : move code #
Total comments: 6
Patch Set 4 : options #Patch Set 5 : fixed compile #
Total comments: 9
Patch Set 6 : vlog to log(warning) #
Total comments: 2
Patch Set 7 : fixed logging #
Messages
Total messages: 16 (3 generated)
|