diff options
author | Moonchild <moonchild@palemoon.org> | 2021-11-01 14:48:34 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-02 14:49:45 +0200 |
commit | 534de5cc5b76f3f8556b8a5c318cde7a5bb93c3d (patch) | |
tree | 1d0cebb83ce88607d10f7543e9defeeb715d1ccc /netwerk/protocol/websocket/WebSocketChannel.cpp | |
parent | 023a71c6f2007eb08116ce539920f7cd11d52d8d (diff) | |
download | uxp-534de5cc5b76f3f8556b8a5c318cde7a5bb93c3d.tar.gz |
Issue #21 - Remove remaining telemetry structs, callers and flags.
Diffstat (limited to 'netwerk/protocol/websocket/WebSocketChannel.cpp')
-rw-r--r-- | netwerk/protocol/websocket/WebSocketChannel.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/netwerk/protocol/websocket/WebSocketChannel.cpp b/netwerk/protocol/websocket/WebSocketChannel.cpp index 952c0d5ee5..85a822806b 100644 --- a/netwerk/protocol/websocket/WebSocketChannel.cpp +++ b/netwerk/protocol/websocket/WebSocketChannel.cpp @@ -2962,35 +2962,6 @@ WebSocketChannel::StartPinging() } -void -WebSocketChannel::ReportConnectionTelemetry() -{ - // 3 bits are used. high bit is for wss, middle bit for failed, - // and low bit for proxy.. - // 0 - 7 : ws-ok-plain, ws-ok-proxy, ws-failed-plain, ws-failed-proxy, - // wss-ok-plain, wss-ok-proxy, wss-failed-plain, wss-failed-proxy - - bool didProxy = false; - - nsCOMPtr<nsIProxyInfo> pi; - nsCOMPtr<nsIProxiedChannel> pc = do_QueryInterface(mChannel); - if (pc) - pc->GetProxyInfo(getter_AddRefs(pi)); - if (pi) { - nsAutoCString proxyType; - pi->GetType(proxyType); - if (!proxyType.IsEmpty() && - !proxyType.EqualsLiteral("direct")) - didProxy = true; - } - - uint8_t value = (mEncrypted ? (1 << 2) : 0) | - (!mGotUpgradeOK ? (1 << 1) : 0) | - (didProxy ? (1 << 0) : 0); - - LOG(("WebSocketChannel::ReportConnectionTelemetry() %p %d", this, value)); -} - // nsIDNSListener NS_IMETHODIMP @@ -3873,8 +3844,6 @@ WebSocketChannel::OnStopRequest(nsIRequest *aRequest, this, aRequest, mHttpChannel.get(), aStatusCode)); MOZ_ASSERT(NS_IsMainThread(), "not main thread"); - ReportConnectionTelemetry(); - // This is the end of the HTTP upgrade transaction, the // upgraded streams live on |