Use TCP keepalives

Not sure this will improve anything, but at least I tried.