BOSH client periodically disconnects

Hi all,

I have a multi-user conference client written using Strophe JS library.

It connects using BOSH to openfire server 3.7.0 beta.

The client gets disconnected occasionally.

I enabled the debug log on server side and captured the traffic on local side.

I found that client sends periodical idle messages like this:

Normally server response with empty messages or with some presence/message stanzas, like this:

**<presence **

** xmlns=“jabber:client” **

** from="test04@mydomain.com/20058818"**

** to="test04@mydomain.com/cb8dbe28">**

** -1**

**<presence **

** xmlns=“jabber:client” **

** to="test04@mydomain.com/cb8dbe28" **

** from="my-room-name@conference.mydomain.com/SomeUserNick">**

** **

** **

** **

**<presence **

** xmlns=“jabber:client” **

** from="test04@mydomain.com/20058818" **

** to="test04@mydomain.com/cb8dbe28">**

** -1**

**
**

But at once as a result of usual idle message:

client receives unavailable presence of itself:

**<presence xmlns=“jabber:client” **

** to="test04@mydomain.com/cb8dbe28" **

** from=“my-room-name@conference.mydomain.com/myOwnNick” **

** type=“unavailable”>**

** **

** **

** **

Here cb8dbe28 is a SID of client’s session.

As a result, client gets disconnected.

I checked the server logs, there are no error/warning/debug messages which contain SID cb8dbe28 or RID close to the last one 1861594624

Can anyone help me with the problem?

What could possibly cause the disconnection?

Thanks in advance,

Alex