diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-03-06 13:47:43 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-03-06 13:47:43 +0000 |
commit | 62b6948a2710c2a095b87b0b9c4b89f7b23246a9 (patch) | |
tree | 0914a00ae5f7e1bf8365b951c5fc1b115d4316bd /ssl/d1_lib.c | |
parent | 0fbf8b9cea4b4b01b6dd9e43d36d616edaf88f61 (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 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) { |