• Michael Grunder's avatar
    Use a windows specific keepalive function. (#1104) · 61b5b299
    Michael Grunder authored
    Use a windows specific keepalive function.
    
    While it is possible to toggle `TCP_KEEPALIVE` in windows via
    setsockopt, you have to use `WSAIoctl` to set the interval.
    
    Since `WSAIoctl` can actually do all of this in one call (toggle the
    option, and set the corresponding interval), just use that in Windows
    and avoid the call to `setsockopt` alltogether.
    
    Fixes: #1100
    61b5b299
net.c 19.9 KB