• Ozan Tezcan's avatar
    Throttle operations early not to block server (#108) · 40100cfa
    Ozan Tezcan authored
    Throttle operations early not to block server
    
    Introduced throttling in #106. If execution of operations take as much as request-timeout, it means this server will not generate responses on time for the existing requests. This is causing extra elections. I've changed deadline as 'now + request_timeout / 2', giving server some room for other operations and enough time to send responses.
    40100cfa
raft_server.c 60.4 KB