From 23f3249ab4236fd45309a61d76ab24192b7e3f51 Mon Sep 17 00:00:00 2001 From: sdamm Date: Wed, 17 Jun 2020 09:16:43 +0200 Subject: [PATCH] Increase MTU for Handshake Allows the handshake to still be stateless when using bigger certificates, ... --- include/asio/ssl/dtls/socket.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asio/ssl/dtls/socket.hpp b/include/asio/ssl/dtls/socket.hpp index 7e6323e..b3b31e2 100644 --- a/include/asio/ssl/dtls/socket.hpp +++ b/include/asio/ssl/dtls/socket.hpp @@ -148,7 +148,7 @@ class socket : next_layer_.lowest_layer().get_executor()) { // set mtu to safe value to prevent dtls-fragmentation of the handshake - set_mtu(1500); + set_mtu(6000); core_.engine_.set_dtls_tmp_data(&remote_endpoint_tmp_); } #endif // defined(ASIO_DTLS_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)