[OpenSIPS-Devel] [OpenSIPS/opensips] f26dcd: tls_mgm: add TLS handshake outcome and latency sta...

Darwvin noreply at github.com
Thu Oct 8 08:08:56 UTC 2026


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f26dcd447e41865912df42400657fe2d9f5f4b30
      https://github.com/OpenSIPS/opensips/commit/f26dcd447e41865912df42400657fe2d9f5f4b30
  Author: Darwvin <darwvin at hotmail.com>
  Date:   2026-10-08 (Thu, 08 Oct 2026)

  Changed paths:
    M modules/tls_mgm/README.md
    A modules/tls_mgm/test/opensips.cfg
    A modules/tls_mgm/test/test.c
    M modules/tls_mgm/tls_mgm.c

  Log Message:
  -----------
  tls_mgm: add TLS handshake outcome and latency statistics

Export backend independent (OpenSSL and wolfSSL) handshake statistics:
attempts, successes, failures, aborted, client vs server attempts,
peer verified vs unverified, handshakes in progress and the cumulative
handshake duration in microseconds.

Each handshake is tracked once per TCP connection in a shared memory
table sharded into 64 locked buckets by connection id, so a handshake
spanning several non-blocking calls is counted exactly once and
unrelated handshakes do not contend on a single lock. Latency uses the
monotonic clock, and the tracker is only touched while a handshake is
pending, so I/O on established connections has no extra cost.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list