Set socket SO_KEEPALIVE