Enable SO_KEEPALIVE.