• Andrew Price's avatar
    Defer closing replay files · d6b35f9f
    Andrew Price authored
    close()ing replay files after storing a message can block on i/o under
    certain conditions. Stuff the fds of the opened files into a list and
    process that list only when a poll_wait() times out, which means there
    are no messages waiting to be processed. Under flood conditions where
    the list is full of open fds, they'll be reused when storing new
    messages.
    d6b35f9f