Time out on TLS clients not closing the connection properly.
[libradsec.git] / tls.c
diff --git a/tls.c b/tls.c
index dc70977..90c3dc9 100644 (file)
--- a/tls.c
+++ b/tls.c
@@ -355,7 +355,7 @@ void tlsserverrd(struct client *client) {
     }
 
     for (;;) {
-       buf = radtlsget(client->ssl, 0);
+       buf = radtlsget(client->ssl, IDLE_TIMEOUT * 3);
        if (!buf) {
            debug(DBG_ERR, "tlsserverrd: connection from %s lost", addr2string(client->addr));
            break;