Skip to content

Commit

Permalink
Bug 1513839 - Make SSL_TIME_UNTIL_HANDSHAKE_FINISHED keyed by kea gro…
Browse files Browse the repository at this point in the history
…up r=keeler,jcj

This collects SSL_TIME_UNTIL_HANDSHAKE_FINISHED dependent on the key group used. This is nice to have in general and especially for the ecdhe-sidh thing.

Differential Revision: https://phabricator.services.mozilla.com/D13524
  • Loading branch information
franziskuskiefer committed Dec 18, 2018
1 parent 638f805 commit 1334278
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions security/manager/ssl/nsNSSIOLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ void nsNSSSocketInfo::SetHandshakeCompleted() {
: NotAllowedToFalseStart;

// This will include TCP and proxy tunnel wait time
Telemetry::AccumulateTimeDelta(Telemetry::SSL_TIME_UNTIL_HANDSHAKE_FINISHED,
mSocketCreationTimestamp, TimeStamp::Now());
Telemetry::AccumulateTimeDelta(
Telemetry::SSL_TIME_UNTIL_HANDSHAKE_FINISHED_KEYED_BY_KA, mKeaGroup,
mSocketCreationTimestamp, TimeStamp::Now());

// If the handshake is completed for the first time from just 1 callback
// that means that TLS session resumption must have been used.
Expand Down
9 changes: 5 additions & 4 deletions toolkit/components/telemetry/Histograms.json
Original file line number Diff line number Diff line change
Expand Up @@ -2261,16 +2261,17 @@
"n_buckets": 200,
"description": "ms of SSL wait time including TCP and proxy tunneling"
},
"SSL_TIME_UNTIL_HANDSHAKE_FINISHED": {
"SSL_TIME_UNTIL_HANDSHAKE_FINISHED_KEYED_BY_KA": {
"record_in_processes": ["main", "content"],
"alert_emails": ["seceng-telemetry@mozilla.com"],
"bug_numbers": [1340021],
"alert_emails": ["seceng-telemetry@mozilla.com", "fkiefer@mozilla.com"],
"bug_numbers": [1340021, 1513839],
"releaseChannelCollection": "opt-out",
"expires_in_version": "never",
"kind": "exponential",
"keyed": true,
"high": 60000,
"n_buckets": 200,
"description": "ms of SSL wait time for full handshake including TCP and proxy tunneling"
"description": "ms of SSL wait time for full handshake including TCP and proxy tunneling, keyed by the key exchange algorithm used"
},
"SSL_BYTES_BEFORE_CERT_CALLBACK": {
"record_in_processes": ["main", "content"],
Expand Down
2 changes: 1 addition & 1 deletion toolkit/components/telemetry/histogram-whitelists.json
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@
"SYSTEM_FONT_FALLBACK_SCRIPT",
"HTTP_REQUEST_PER_PAGE_FROM_CACHE",
"SSL_TIME_UNTIL_READY",
"SSL_TIME_UNTIL_HANDSHAKE_FINISHED",
"SSL_TIME_UNTIL_HANDSHAKE_FINISHED_KEYED_BY_KA",
"CERT_VALIDATION_HTTP_REQUEST_CANCELED_TIME",
"CERT_VALIDATION_HTTP_REQUEST_SUCCEEDED_TIME",
"CERT_VALIDATION_HTTP_REQUEST_FAILED_TIME",
Expand Down

0 comments on commit 1334278

Please sign in to comment.