Files
Pavel LavrukhinandNikos Mavrogiannopoulos c4c102a9c9 worker: keep DTLS active when a CSTP control frame arrives
tls_mainloop() took the return value of parse_cstp_data() for the packet
type. The parser returns 0 for every frame it accepts, and AC_PKT_DATA
is 0, so a keepalive or a DPD frame over TLS was treated as data: with
no UDP packet for 15 seconds the worker marked the DTLS channel inactive
and sent over TLS, whatever switch-to-tcp-timeout was set to, including
0.

parse_cstp_data() already marks the channel inactive as soon as an
uncompressed data frame arrives over TLS, so the timed check in
tls_mainloop() never acted on such frames; it delayed the switch for
compressed data and misfired on control frames. Remove it, together with
UDP_SWITCH_TIME, and let parse_cstp_data() treat compressed data like
uncompressed data.

Relates: #769
Signed-off-by: Pavel Lavrukhin <14156456-dantte_lp@users.noreply.gitlab.com>
2026-12-05 10:44:33 +01:00
..
2026-05-23 16:16:35 +02:00
2026-10-26 12:57:23 +01:00
2026-05-23 16:16:35 +02:00
2024-04-28 13:37:19 +02:00
2026-06-06 15:23:54 +02:00
2026-06-06 15:23:54 +02:00
2026-06-06 15:23:54 +02:00
2026-06-06 15:23:54 +02:00
2026-06-06 15:23:54 +02:00
2026-06-06 15:23:54 +02:00
2026-06-06 15:23:54 +02:00
2026-06-06 15:23:54 +02:00
2026-06-06 15:23:54 +02:00