When I’m on certain networks or within some VPN, I notice that the Phoenix app falls back to long polling as somewhat expected. But I’m wondering why it takes 10 seconds for each long poll request? I would imagine this would be a very quick check, especially as the LV I’m on isn’t doing much at all.
1 Like
The “long” in Long Polling is about waiting “longer” for a server reply. This way, there’s always an inflight request ready to send server updates “as they happen”.
If the client were to only “ping” the server from time to time, it would introduce latency proportional to the interval between requests.
Note that if the server does have something to return, the request might return within milliseconds, and then the client issues the next long polling request.
2 Likes





















