Skip to content
Snippets Groups Projects
Commit 90eea3b4 authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

dtls: increase handshake retry delay

Increase DTLS retransmit timeout from 250ms to 1000ms.
This may help in case of network congestion to not increase
the problem.

Change-Id: I5ffedc91b5fac594b9a36384c6e3cc89f20c7c0d
Tuleap: #572
parent 54a7a162
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ static constexpr int DTLS_MTU {1400}; // limit for networks like ADSL
static constexpr std::size_t INPUT_MAX_SIZE {1000}; // Maximum packet to store before dropping (pkt size = DTLS_MTU)
static constexpr ssize_t FLOOD_THRESHOLD {4*1024};
static constexpr auto FLOOD_PAUSE = std::chrono::milliseconds(100); // Time to wait after an invalid cookie packet (anti flood attack)
static constexpr auto DTLS_RETRANSMIT_TIMEOUT = std::chrono::milliseconds(250); // Delay between two handshake request on DTLS
static constexpr auto DTLS_RETRANSMIT_TIMEOUT = std::chrono::milliseconds(1000); // Delay between two handshake request on DTLS
static constexpr auto COOKIE_TIMEOUT = std::chrono::seconds(10); // Time to wait for a cookie packet from client
// Helper to cast any duration into an integer number of milliseconds
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment