From 614b8639d95de1b782c7a1d3983a78b8e4bcebb9 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Tue, 30 Jun 2026 17:45:47 +0200 Subject: [PATCH] ssl: Eliminate client race condition A busy client node could self-trigger a ticket store crash if unlucky with scheduling if auto mode is used. Closes #11304 --- lib/ssl/src/tls_client_ticket_store.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ssl/src/tls_client_ticket_store.erl b/lib/ssl/src/tls_client_ticket_store.erl index 9b18dc8f7eb3..d73e9331dde6 100644 --- a/lib/ssl/src/tls_client_ticket_store.erl +++ b/lib/ssl/src/tls_client_ticket_store.erl @@ -291,7 +291,10 @@ get_tickets(#state{db = Db} = State, Pid, [Key|T], Acc) -> nonce = Nonce, cipher_suite = CipherSuite, max_size = MaxEarlyData}, - get_tickets(State, Pid, T, [TicketData|Acc]) + get_tickets(State, Pid, T, [TicketData|Acc]); + _ -> + %% Ticket locked by another connection, skip + get_tickets(State, Pid, T, Acc) catch _:_ -> get_tickets(State, Pid, T, Acc)