Question

It works well when comet.c is opened in different browser simultaneously, one page per browser.
When I opened two pages of comet.c in a browser, no matter firefox or chrome, only the first page received and displayed data.
The second page were hanged until the first page was closed.
In the user's point of view, it is abnormal.
Who can tell what's wrong, browser or push_list_add() or the comet.js?
All pages requested freq. of one update per second.

Était-ce utile?

La solution 2

[solved]
In client side, add a timestamp at the end of the url in the form action.
var url = "/?comet.c&feed=livestock&delay="+escape(delay)+"&"+(new Date().getTime());
Done.

Autres conseils

It works well when comet.c is opened in different browser simultaneously, one page per browser... but with several pages in a single browser only the first page works.

It looks like a client issue: if that was the server then comet.c would not work with different client programs used simultaneously.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top