What Is Poll Pending Canceled

From the Chrome console, I see several poll items.

It’s listed as canceled, pending or showing time of 25+ s

What is it and can it be removed?

Those are the message bus connections and are needed for Discourse to work properly. This is what makes Discourse update in front of your eyes without needing constant page refreshes.

5 Likes

AFAIK if you disable JavaScript in your browser “poll” won’t happen.

To add on to @Falco’s answer, it is an http(s) long poll:

The idea is javascript on the client side asks the server for updates (changes to the current page, notifications about new responses, etc). The server, if it doesn’t have any answer, does not answer, but instead just keeps the request open. If / when it does have something to say, it responds. But if the request times out before then, it’s no problem. The javascript will just open a new poll request. And wait.

4 Likes

This topic was automatically closed after 12 hours. New replies are no longer allowed.