api: extend setKeepAlive: