Hi everyone,

I'm in the process of implementing a consumer for the streaming API,
but while perusing the documentation I noticed an inconsistency in
 http://apiwiki.twitter.com/Streaming-API-Documentation

"""
When a network error (TCP/IP level) is encountered, back off linearly.
Perhaps start at 250 milliseconds, double, and cap at 16 seconds.
Network layer problems are generally transitory and clear quickly.

When a HTTP error (> 200) is returned, back off linearly. Perhaps
start with a 10 second wait, double on each subsequent failure, and
finally cap the wait at 240 seconds.
"""

both blocks tell to use a linear backoff, but both give an example of
a geometric growth, not a linear one.

So I guess the backof shpould actually be binary-exponential and maybe
the doc should be updated to avoid confusion.

Hope this helps someone else :)

Reply via email to