문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top