From ac1f2aaadd927e8187edabaea9a788425bb42b9f Mon Sep 17 00:00:00 2001 From: Test_User Date: Tue, 8 Aug 2023 22:46:35 -0400 Subject: Hopefully disconnect on its own when things break now --- tls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tls.c') diff --git a/tls.c b/tls.c index 54cf47d..314a889 100644 --- a/tls.c +++ b/tls.c @@ -84,7 +84,9 @@ int connect_tls(void) { if (ret < 0) return 10; + gnutls_record_set_timeout(session, 60000); // 60s + return 0; } -extern inline size_t RECV(char *buf, size_t buflen); // Should force it to get compiled into tls.o +extern inline size_t RECV(char *buf, size_t buflen, char *timeout); // Should force it to get compiled into tls.o -- cgit v1.2.3