set SO_KEEPALIVE on client sockets