• Madelyn Olson's avatar
    Remove race condition and consistency issues with client pause and threaded IO (#8520) · 0c653428
    Madelyn Olson authored
    clientsArePaused isn't thread safe because it has a side effect of attempting to unpause,
    which may cause multiple threads concurrently updating the unblocked_clients global list.
    This change resolves this issue by no longer postponing client for threaded reads when
    clients are paused and then skipping the check for client paused for threaded reads,
    in case one is postponed and then clients are paused. (I don't think this is strictly possible,
    but being defensive seems better here)
    0c653428
networking.c 129 KB