Closed Bug 1388684 Opened 7 years ago Closed 7 years ago

RCWN breaks HTTP_CHANNEL_DISPOSITION telemetry

Categories

(Core :: Networking: Cache, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: michal, Assigned: michal)

Details

(Whiteboard: [necko-active])

Attachments

(1 file)

When racing cache with network mUsedNetwork is always true. Should we report value according to who wins or should we add new values?

Btw, the current code reports kHttpNetOK when we revalidate the cache entry with server and use the cached content. Is this OK?
Flags: needinfo?(mcmanus)
(In reply to Michal Novotny (:michal) from comment #0)
> When racing cache with network mUsedNetwork is always true. Should we report
> value according to who wins or should we add new values?

according to who wins

> 
> Btw, the current code reports kHttpNetOK when we revalidate the cache entry
> with server and use the cached content. Is this OK?

yeah that's the right thing. The transaction required the network and it went ok.
Flags: needinfo?(mcmanus)
Attached patch fixSplinter Review
Assignee: nobody → michal.novotny
Attachment #8897043 - Flags: review?(mcmanus)
Whiteboard: [necko-active]
Attachment #8897043 - Flags: review?(mcmanus) → review+
Pushed by mnovotny@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/05448985c4cb
RCWN breaks HTTP_CHANNEL_DISPOSITION telemetry, r=mcmanus
https://hg.mozilla.org/mozilla-central/rev/05448985c4cb
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: