Skip to content

Commit

Permalink
Increased DTLS timeout value to 12 seconds.
Browse files Browse the repository at this point in the history
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
  • Loading branch information
nmav committed Feb 16, 2014
1 parent 6fcb872 commit 6d855b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dtls.c
Expand Up @@ -280,7 +280,7 @@ int dtls_try_handshake(struct openconnect_info *vpninfo)
ret = SSL_get_error(vpninfo->dtls_ssl, ret);
if (ret == SSL_ERROR_WANT_WRITE || ret == SSL_ERROR_WANT_READ) {
static int badossl_bitched = 0;
if (time(NULL) < vpninfo->new_dtls_started + 5)
if (time(NULL) < vpninfo->new_dtls_started + 12)
return 0;
if (((OPENSSL_VERSION_NUMBER >= 0x100000b0L && OPENSSL_VERSION_NUMBER <= 0x100000c0L) || \
(OPENSSL_VERSION_NUMBER >= 0x10001040L && OPENSSL_VERSION_NUMBER <= 0x10001060L) || \
Expand Down Expand Up @@ -427,7 +427,7 @@ int dtls_try_handshake(struct openconnect_info *vpninfo)
}

if (err == GNUTLS_E_AGAIN) {
if (time(NULL) < vpninfo->new_dtls_started + 5)
if (time(NULL) < vpninfo->new_dtls_started + 12)
return 0;
vpn_progress(vpninfo, PRG_TRACE, _("DTLS handshake timed out\n"));
}
Expand Down

0 comments on commit 6d855b1

Please sign in to comment.