commit - eb4f9eac0c35071838c9367f1204db0d0b98ad2e
commit + fb924933765238808feb05fb7178402058026897
blob - 6a7f63393c6f7177f054b991e72a15009cf6fa1c
blob + 815251297eea9da27f2db6d3cf0e7fa91433bb26
--- src/ngircd/conf.c
+++ src/ngircd/conf.c
* require the next attempt to be delayed. */
Conf_Server[i].lasttry =
t - Conf_ConnectRetry + RECONNECT_DELAY;
- } else
- Conf_Server[i].lasttry = t;
+ } else {
+ /* "Short" connection, enforce "ConnectRetry"
+ * but randomize it a little bit: 15 seconds. */
+ Conf_Server[i].lasttry =
+ t + rand() / (RAND_MAX / 15);
+ }
}
}
}