• Steven Allen's avatar
    set linger to 0 for both inbound and outbound connections · bd1b98fa
    Steven Allen authored
    This causes us to send RST packets instead of FIN packets when closing
    connections and means connections immediately enter the "reset" state instead of
    entering the TIME-WAIT state.
    
    Importantly, this means we can immediately reuse the 5-tuple and reconnect.
    bd1b98fa
tcp.go 3.74 KB