mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-07 02:58:56 +00:00
Running down a test flake and diagnosed this one. This commit closes a narrow race when attaching to the SMTP tracing (trace-smtp-server, trace-smtp-client) and TSA subscription (subscribe_suspension_v1, subscribe_event_v1) websocket endpoints. The server did not finish registering the new subscriber until just after the connection handshake completed, so any event produced in the brief window between those two points was not delivered to that client. In practice this could cause a freshly-attached SMTP trace to miss the first event or two of a session that happened to start at the same instant; it did not affect mail flow. The endpoints now register the subscriber before completing the handshake