Skip to content

Add ConnectionMetrics to expose session ticket/PSK usage#387

Open
thesinakamali wants to merge 1 commit intorefraction-networking:masterfrom
thesinakamali:feature/connection-metrics
Open

Add ConnectionMetrics to expose session ticket/PSK usage#387
thesinakamali wants to merge 1 commit intorefraction-networking:masterfrom
thesinakamali:feature/connection-metrics

Conversation

@thesinakamali
Copy link

Add a ConnectionMetrics struct and Conn.ConnectionMetrics() method that allows consumers to determine whether the client sent a TLS 1.2 session ticket or a TLS 1.3 PSK in the ClientHello. This is useful for metrics and diagnostics around session resumption behavior.

Changes:

  • Add ConnectionMetrics struct in common.go
  • Add clientSentTicket field to Conn in conn.go
  • Add ConnectionMetrics() method on Conn in conn.go
  • Set clientSentTicket after writeHandshakeRecord in u_handshake_client.go

Add a ConnectionMetrics struct and Conn.ConnectionMetrics() method that
allows consumers to determine whether the client sent a TLS 1.2 session
ticket or a TLS 1.3 PSK in the ClientHello. This is useful for metrics
and diagnostics around session resumption behavior.

Changes:
- Add ConnectionMetrics struct in common.go
- Add clientSentTicket field to Conn in conn.go
- Add ConnectionMetrics() method on Conn in conn.go
- Set clientSentTicket after writeHandshakeRecord in u_handshake_client.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant