metajack/strophejs — Issue #82: IE8/9 duplicated request & inactive session
Author: yiashen
Created: 2012-02-28 17:43:13+00:00
State: open

Hi,

I have a problem with Internet Explorer (8 & 9, I don't have to support IE7-). Everything works fine in other browsers.

I have found some times ago that Internet Explorer dropped my strophe connection without any reasons, just after sending two requests with the same rid. By drop connection, I mean that I'm unable to send any logs anymore. The connection is still there, sending blank request every 60s.

Here is the traces which are outputted by Strophe :

![Traces](http://f.cl.ly/items/3S3s0H1W2B272c161Y2k/screen.PNG)

It's just after the duplicated request that IE does not send request anymore. Just blank requests.

If I comment `this._data.push(null)` in :

```

// if no requests are in progress, poll
if (this.authenticated && this._requests.length === 0 &&
this._data.length === 0 && !this.disconnecting) {
Strophe.info("no requests during idle cycle, sending " +
"blank request");
this._data.push(null);
}
```

There is no problems anymore. Obviously, I don't want to do that, but I can't figure out why it works when I comment this line.

I'm struggling with that for a few weeks, and I can't find why only IE has a problem. Thanks for helping me.

Context : I have an old version of Strophe with some small modifications to match our needs. These modifications shouldn't affect this part of Strophe. I've also upgraded Strophe to see if it changes anything, but the bug is still there.