Inactive IE9 stops polling

57 views
Skip to first unread message

Matthew Tyson

unread,
Jun 1, 2012, 11:11:39 AM6/1/12
to cometd-users
We are seeing this behavior in IE9.  If the browser is left inactive for a while (the computer does not go to sleep), the long polling stops, and only restarts again if the page is completely refreshed.

Has anyone else observed this behavior?  FF works fine.

Thanks,

Matt Tyson

donp

unread,
Jun 1, 2012, 11:19:22 AM6/1/12
to cometd-users
Yes, I see this exact behavior as well, in Chrome browser.

I have an application set up to push messages from server to client,
with logging on both the server and client when messages are sent/
received. After between 6-15 minutes of inactivity, the browser stops
receiving messages. It appears that the client subscription/session
somehow times out or is terminated, even though the server is still
pushing data updates.

I have not been able to track down what could be the cause of this.

See this thread:
https://groups.google.com/group/cometd-users/browse_thread/thread/c7f9e88b8aed4b76

Don P.

Matthew Tyson

unread,
Jun 1, 2012, 11:37:13 AM6/1/12
to cometd...@googlegroups.com
Don,

Do you have a Stack Overflow account?  I was going to post your question there, but I'll let you do it if so.  To me, this appears to be a browser problem.  

Matt Tyson



--
You received this message because you are subscribed to the Google Groups "cometd-users" group.
To post to this group, send email to cometd...@googlegroups.com
To unsubscribe from this group, send email to cometd-users...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cometd-users

Visit the CometD website at http://www.cometd.org

Simone Bordet

unread,
Jun 3, 2012, 9:54:32 AM6/3/12
to cometd...@googlegroups.com
Hi,
I just left IE9 on Windows 7 (on a VirtualBox VM) idle for hours in
the CometD demo chat, just long-polling, and I have not seen this
behavior.

Are you sure it's not due to network, ISP provider issues, the
application, etc ?

Can you take a wireshark dump of the disconnection, and see what is
triggering it ?

Client and Server are on the same net, or there are intermediaries in
between that could close/drop the connection ?

Simon
--
http://cometd.org
http://intalio.com
http://bordet.blogspot.com
----
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless.   Victoria Livschitz

Matthew Tyson

unread,
Jun 7, 2012, 5:38:38 PM6/7/12
to cometd...@googlegroups.com
Hello,

I had QA get a dump from IE9 net tab.  Here is the last cometd entry:

<entry>
<pageref>0</pageref>
<startedDateTime>2012-06-05T20:18:31.673-08:00</startedDateTime>
<time>0</time>
<request>
<method/>
<httpVersion/>
<cookies/>
<headers/>
<queryString/>
<headersSize>0</headersSize>
<bodySize>0</bodySize>
</request>
<response>
<cookies/>
<headers/>
<content>
<size>0</size>
<mimeType/>
</content>
<redirectionURL/>
<headersSize>0</headersSize>
<bodySize>0</bodySize>
</response>
<cache/>
<timings>
<send>0</send>
<wait>-1</wait>
<receive>-1</receive>
</timings>
</entry>

Something is definitely wrong there.  But it appears that the problem is the browser's request.

Thoughts?

Matt

Simone Bordet

unread,
Jun 7, 2012, 5:54:01 PM6/7/12
to cometd...@googlegroups.com
Hi,
Yeah, no headers, no body ?
Are you doing cross-domain requests for CometD ?

Really weird.

--
www.webtide.com
Developer advice, services and support
from the Jetty & CometD experts.

Matthew Tyson

unread,
Jun 8, 2012, 11:52:36 AM6/8/12
to cometd...@googlegroups.com

> Yeah, no headers, no body ?
> Are you doing cross-domain requests for CometD ? 

No, same domain.  

I am thinking about doing a workaround: set up an interval (for IE only) that checks every 60 seconds if comet is still active, and if not, re-establish it.

Is there a reliable way to test if the connections are no longer being made?

Thanks,

Matt


Simone Bordet

unread,
Jun 8, 2012, 12:17:46 PM6/8/12
to cometd...@googlegroups.com
Hi,

On Fri, Jun 8, 2012 at 5:52 PM, Matthew Tyson
<matthewc...@gmail.com> wrote:
>
>> Yeah, no headers, no body ?
>> Are you doing cross-domain requests for CometD ?
>
> No, same domain.
>
> I am thinking about doing a workaround: set up an interval (for IE only)
> that checks every 60 seconds if comet is still active, and if not,
> re-establish it.

Before entering that path, I would triple check that it's not the
application behaving badly.

If you leave IE idle on the CometD demo, you see the same behavior ?
Reply all
Reply to author
Forward
0 new messages