Make timeout for UDP connections configurable #6859
Labels
area/udp
kind/enhancement
a new or improved feature.
priority/P2
need to be fixed in the future
status/5-frozen-due-to-age
Projects
Milestone
We are planning to push DTLS-protected UDP traffic through Traefik on its way into our system. When trying this, we noticed that Traefik forgets the UDP connections after 3 seconds (https://github.com/containous/traefik/blob/master/pkg/udp/conn.go#L17). The reporting interval for our data sources is at least 10 seconds, often 60 seconds, and sometimes longer, so they will form a new Traefik "connection" for each report.
The problem with forming a new "connection" for reach report is that DTLS does not include any kind of session id in the DTLS record, and instead relies on external identifiers (in this case UDP 4-tuple) to tie incoming packets to the correct session. With a new "connection" for each report, the source port changes for each report, which first causes a timeout and then causes a new DTLS session to be established. We would like to avoid this timeout and the cost of establishing a new DTLS session.
To reach this goal, we need to make the timeout for UDP connections configurable.
The text was updated successfully, but these errors were encountered: