diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-03-06 13:45:47 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-03-06 13:45:47 +0000 |
commit | b2a2c6af2a73ef99ef6d0033c5c43e968a3cb2e1 (patch) | |
tree | a568183aee21ffb0d8caf1017fd49b85d246bd44 /ssl/d1_lib.c | |
parent | 272993bac46e94a7d3a78e050cec6d5ca29c38ec (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index 2e57b63101..bceba3c971 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -454,6 +454,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); } |