I was actually thinking of doing a geometric increase for the wait timeout, at least in case of errors. For successful requests, I am less sure we should add any delay at all... a web polling server will normally answer only when events happen. The main thing we should detect is if the user uses an URL that is not long-polling, thereby creating a loop. Any idea how to detect that? Or can we assume the user knows what he is doing?