grr, followup to myself ..
the part
if ( retry+TIMO_CHUNK > timo_secs) {
timo_secs = retry+TIMO_CHUNK;
}
should be read as :
if ( retry*TIMO_CHUNK > timo_secs) {
timo_secs = retry*TIMO_CHUNK;
}
(I tested it this way, initialising timo_secs=1; sorry)
--
Arno J. Klaassen
SCITO S.A.
8 rue des Haies
F-75020 Paris, France
http://scito.com