summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorvenaas <venaas>2007-05-15 09:18:46 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-05-15 09:18:46 +0000
commit36f1a92cea2b74a44ba521701d6cb31df8ce3cd1 (patch)
tree4e749f85ae518265febd1fcafc96687c6af41910 /radsecproxy.c
parentcb9e63ae8d870e1b2ece83eb0d4b66f9c443cbfd (diff)
updated config examples and README
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@86 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 570a11f..779a1fa 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -448,12 +448,12 @@ void tlsconnect(struct server *server, struct timeval *when, char *text) {
sleep(10);
} else if (elapsed < 5)
sleep(10);
- else if (elapsed < 600) {
+ else if (elapsed < 300) {
debug(DBG_INFO, "tlsconnect: sleeping %lds", elapsed);
sleep(elapsed);
- } else if (elapsed < 1000) {
- debug(DBG_INFO, "tlsconnect: sleeping %ds", 900);
- sleep(900);
+ } else if (elapsed < 100000) {
+ debug(DBG_INFO, "tlsconnect: sleeping %ds", 600);
+ sleep(600);
} else
server->lastconnecttry.tv_sec = now.tv_sec; /* no sleep at startup */
debug(DBG_WARN, "tlsconnect: trying to open TLS connection to %s port %s", server->peer.host, server->peer.port);