queue optimization, get ping interval from server