English version Russian version Version française Nederlandse versie Versión española Version portuguese Version polonaise Italian version Versiunea româna   KiTTY News

KiTTY : Forum

Last modification : -

KiTTY web site




Forum Home
 

bug in use of ReconnectDelay

David Piguet-Lacroix - Thu 11/12/2014 17:08:02 CET +0100

Hello,

It seems to have a bug in your utilisation of the ReconnectDelay parameter.
it doesn't matter how big your int is, there will always have a maximum of one second pause.

I downloaded the sources, and it seems that the line 4824 and 1796 of window.c :


if(last_reconnect && (tnow - last_reconnect) < GetReconnectDelay() ) {
Sleep(1000);
}
The maximum wait with this code will be 1 sec.

It looks like it should have been a while instead of a if?
or better, put the reconnect section in a 'else' to avoid too long interface freeze caused by a sleep?


David




Answer


The forum is actually closed