What Is Poll Pending Canceled

(charles) #1

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?

(Rafael dos Santos Silva) #2

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.

(Mittineague) #3

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

(Eli the Bearded) #4

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.

(Régis Hanol) #5

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