• Guy Benoish's avatar
    Replication buffer fills up on high rate traffic. · 548e4fe0
    Guy Benoish authored
    When feeding the master with a high rate traffic the the slave's feed is much slower.
    This causes the replication buffer to grow (indefinitely) which leads to slave disconnection.
    The problem is that writeToClient() decides to stop writing after NET_MAX_WRITES_PER_EVENT
    writes (In order to be fair to clients).
    We should ignore this when the client is a slave.
    It's better if clients wait longer, the alternative is that the slave has no chance to stay in
    sync in this situation.
    548e4fe0
networking.c 74.6 KB