• hclam's avatar
    Cast: set UDP socket send buffer size via options · 482d3eb1
    hclam authored
    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
    
    Review URL: https://codereview.chromium.org/654843007
    
    Cr-Commit-Position: refs/heads/master@{#300183}
    482d3eb1
udp_transport_unittest.cc 3.11 KB