Enable TCP keep-alive to prevent local socket timeouts between server PINGs.