summaryrefslogtreecommitdiffstats
path: root/ssl/d1_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-03-06 13:47:27 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-03-06 13:47:27 +0000
commit25bfdca16a70f38a6df9fc213a255fe6b6947fcc (patch)
tree5eaf11ad186bf74fe0a996b7383869431584e9b5 /ssl/d1_lib.c
parent9c284f96517d6f9956bf4d7f73971e7a5d410263 (diff)
PR: 2755
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de> Reduce MTU after failed transmissions.
Diffstat (limited to 'ssl/d1_lib.c')
-rw-r--r--ssl/d1_lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c
index e205b5c6e5..f4bfd29afd 100644
--- a/ssl/d1_lib.c
+++ b/ssl/d1_lib.c
@@ -424,6 +424,11 @@ int dtls1_handle_timeout(SSL *s)
state->timeout.read_timeouts = 1;
}
+ if (state->timeout_duration > 2)
+ {
+ s->d1->mtu = BIO_ctrl(SSL_get_wbio(s), BIO_CTRL_DGRAM_GET_FALLBACK_MTU, 0, NULL);
+ }
+
#ifndef OPENSSL_NO_HEARTBEATS
if (s->tlsext_hb_pending)
{