10 ms·
If the connections are dropped quietly (client side does not find out the connection is gone) then how does the long poll case know that the existing poll conn
by mdpye 12y ago
If the connections are dropped quietly (client side does not find out the connection is gone) then how does the long poll case know that the existing poll conn is not going to return any data and a new one needs to be initiated?
Or is it just that long polls generally have short timeout compared with what you might implement for a websocket ping?
- jkarneges 12y agoCorrect, long polling clients generally have timeouts. I wouldn't say they are necessarily shorter or longer than typical websocket ping intervals (I've seen as low as 20 seconds and as long as 2 minutes), but they do need to be there for the client to recover quickly.