• A
    Replication: fix master timeout. · 6d8c2a48
    antirez 提交于
    Since we started sending REPLCONF ACK from slaves to masters, the
    lastinteraction field of the client structure is always refreshed as
    soon as there is room in the socket output buffer, so masters in timeout
    are detected with too much delay (the socket buffer takes a lot of time
    to be filled by small REPLCONF ACK <number> entries).
    
    This commit only counts data received as interactions with a master,
    solving the issue.
    6d8c2a48
networking.c 53.3 KB