Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de>

Reduce MTU after failed transmissions.
This commit is contained in:
Dr. Stephen Henson
2012-03-06 13:47:43 +00:00
parent 0fbf8b9cea
commit 62b6948a27
4 changed files with 29 additions and 2 deletions

View File

@@ -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)
{