docs: check the return values of the "set_keepalive" method.