News for hackers. Stuff that matters.
Re:Back to basics: Why we chose long-polling over websockets by Myrmornis on Monday January 06, 2025 @06:49AM (#42609799)
> If the server has nothing to send for a while, libcurl times out. The client then makes the request again. This results in a race condition if the server wants to send something between timeout and next request. Messages get lost.

I think it's a premise of reliable long-polling that the server can hold on to messages across the changeover from one client request to the next.

There are no comments on this comment yet.