wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.22k stars 295 forks source link

Reconnect without timeout #232

Closed Cosmologist closed 8 years ago

Cosmologist commented 8 years ago

I don't need reconnect with timeout, bun i can't set zero to the suitable settings parameters, because settings.reconnectOnTimeoutInterval || 3000 returns 3000, when settings.reconnectOnTimeoutInterval is zero.

wandenberg commented 8 years ago

Hi @Cosmologist will be easier just to set a very small value like 1 ms. Set it to 0 isn't a good idea, it can easily create an infinity loop on your javascript and lock the browser in case the server has a temporary problem, as example.