Question

In almost every long polling examples I see, there is something like a timeout of 30 seconds client-side. What is the precise reason for this?

Was it helpful?

Solution

Some routers, proxies or whatever device there is in the middle might decide to drop TCP/IP connections being idle for extensive period of time. Also refreshing connection once in a while makes sure you'll discover server failure quicker.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top