summaryrefslogtreecommitdiff
path: root/tls.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-08-26 17:02:07 +0200
committerLinus Nordberg <linus@nordberg.se>2013-08-26 17:02:07 +0200
commit25e21cd0c2a8e7b6afee116fbcbc1adaf337adaf (patch)
tree3f72a1c07165f7b829c9bf3f682dd28dce13ac7d /tls.c
parent5c4b0c31393221c74367c8b2a33ef127bdb9e59c (diff)
Time out on TLS clients not closing the connection properly.
Patch by Fabian Mauchle.
Diffstat (limited to 'tls.c')
-rw-r--r--tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tls.c b/tls.c
index 3b2b0ac..d376e73 100644
--- a/tls.c
+++ b/tls.c
@@ -351,7 +351,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;