liftweb 3 problem

80 views
Skip to first unread message

shigang zhong

unread,
Apr 10, 2014, 2:08:50 PM4/10/14
to lif...@googlegroups.com
Hi,

I'm using lift 3.0, and encount a problem.

According to [1,2], I implement a Round Trip[3] and a client actor[4]. They work well separately,but would send comet requests endlessly if I open pages as following simultaneously

If not go with wrong, please press F5 on browser. I have tested it with chrome and IE 10 (F12 for debugging, watching on the network tab).

Is there any key steps missed?

Thanks,
zhong shigang

Antonio Salazar Cardozo

unread,
Apr 10, 2014, 2:39:44 PM4/10/14
to lif...@googlegroups.com
What do you mean by “send comet requests endlessly”? It is normal for comet requests to restart, as they
maintain a live connection to the server… What behavior are you expecting, and what behavior are you
seeing?
Thanks,
Antonio

shigang zhong

unread,
Apr 11, 2014, 1:47:08 AM4/11/14
to lif...@googlegroups.com
Thanks for your concern.

The question is that they will send many  comet requests rapidly, only after about half a minute it stabilize down.

The bug appears when more than one page opened simultaneously as following
or
or
If closing one page, the bug disappears at once.

I guess the liftweb javascipt libary has employed some global variable like windows.liftObject which not take care of multiple browser tab.

Thanks,
zhong shigang

shigang zhong

unread,
Apr 21, 2014, 4:07:15 AM4/21/14
to lif...@googlegroups.com
I am sorry. The similar topic has been discussed. https://groups.google.com/forum/#!searchin/liftweb/websocket|sort:date/liftweb/0amXmHkwUXc/zxnWYA-x41cJ

在 2014年4月11日星期五UTC+8上午2时39分44秒,Antonio Salazar Cardozo写道:
What do you mean by “send comet requests endlessly”? It is normal for comet requests to restart, as they
maintain a live connection to the server… What behavior are you expecting, and what behavior are you
seeing?
Thanks,
Antonio
...

Antonio Salazar Cardozo

unread,
Apr 21, 2014, 10:15:32 AM4/21/14
to lif...@googlegroups.com
I'm really sorry I missed your original reply with more details, I think I made a note to reply but then
got sidetracked by other things.

Indeed, depending on the browser, you'll get serialized requests if you have a certain number of
tabs open. Unless you see actual problems arising from this, however, I wouldn't be too concerned.
Thanks,
Antonio
Reply all
Reply to author
Forward
0 new messages