• guybe7's avatar
    Add a timeout mechanism for replicas stuck in fullsync (#8762) · d63d0260
    guybe7 authored
    Starting redis 6.0 (part of the TLS feature), diskless master uses pipe from the fork
    child so that the parent is the one sending data to the replicas.
    This mechanism has an issue in which a hung replica will cause the master to wait
    for it to read the data sent to it forever, thus preventing the fork child from terminating
    and preventing the creations of any other forks.
    
    This PR adds a timeout mechanism, much like the ACK-based timeout,
    we disconnect replicas that aren't reading the RDB file fast enough.
    d63d0260
networking.c 139 KB