質問

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.

役に立ちましたか?

解決 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.

他のヒント

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top