Re: Server disconnect after while
From: Rommel S Trindade <rommel.trindade@xxxxxxxxxxxxx>
Date: Wed, 13 Feb 2008 23:17:50 +0100 (CET)
Tks Jakob.

I implemented the ClientBase::whitespacePing() function on my code and it is working ok.


cheers,

Rommel.


Jakob Schröter wrote:
On Saturday February 9 2008, Rommel S Trindade wrote:
Hi all,


I'm trying to make a bot.
But after some time of inactivity the server closes the connection (
6min more less ).


There are some configuration that the client send server to not
disconnect after the timeout?
If not. What is correct procedure to not get disconnected?
There are some samples code about it?

Hi,

You can send a whitespace ping (ClientBase::whitespacePing()) from time to time to prevent that from happening.

cheers,
Jakob