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:46:52 +00:00
parent 9c2bed0b65
commit f4f512a853
4 changed files with 29 additions and 2 deletions

View File

@@ -414,6 +414,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);
}
dtls1_start_timer(s);
return dtls1_retransmit_buffered_messages(s);
}