Jabber disconnecting after 2 hours exactly

hi everybody,

We integrating jabber chat in our php APPLICATION for a quite while. Using jabber php classes we doing this.
We getting disconnected after 2 hours from the server
We can't able to trace this.

am using ejabberd server.

We were using our own server.
Also, we not using any external third party client for the chat. We developing our own customized client for chat.
We just using class jabber for communication.

Why it disconnecting after two hours exactly.
am using the default value in the classJabber.php
define("RUN_TIME",100000000);
define("CBK_FREQ",5);

For receiving the incoming message - we maintaining a connection (MESSAGE LOOP), when we initially logged into application.
We will not break the initial connection while sending any messages in the chat (for sending messages, we were connecting the jabber server again and disconnect once we sent that message - we using different presence for doing this).

Could you anyone sort out this one - please.

Thanks and Regards,
Srini

Syndicate content