• Samuel Pitoiset's avatar
    rtmp: Reduce the number of idle posts sent by sleeping 50ms · 9d811fd8
    Samuel Pitoiset authored
    Rtmpt is effectively half duplex - the server can't return any
    data unless we send a request (to which the server responds). If
    we don't have any data to send currently, and the server didn't
    return any data either, wait a little before doing the next request.
    
    This avoids busy looping with idle posts with empty replies, while
    waiting for more data from the server.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    9d811fd8
rtmphttp.c 7.8 KB