• Vishwanath Dixit's avatar
    avformat/http: flushing tcp receive buffer when it is write only mode · 30940be3
    Vishwanath Dixit authored
    In write only mode, the TCP receive buffer's data keeps growing with
    http response messages and the buffer eventually becomes full.
    This results in zero tcp window size, which in turn causes unwanted
    issues, like, terminated tcp connection. The issue is apparent when
    http persistent connection is enabled in hls/dash live streaming use
    cases. To overcome this issue, the logic here reads the buffer data
    when a file transfer is completed, so that any accumulated data in
    the recieve buffer gets flushed out.
    30940be3
http.c 62.6 KB