GetTotalSentBytes() and GetTotalReceivedBytes() return non-zero value when HttpResponseInfo.network_accessed is false |
||||
Issue descriptionGetTotalSentBytes() and GetTotalReceivedBytes() are supposed to return bytes sent and received over the network. So if a request does not access the network then both these methods are expected to return 0. However, I see this violated fairly frequently. There needs to be a DCHECK in code for this property or if this is expected then it should be documented.
,
Oct 10 2016
I'd guess the bug here is with network_accessed, rather than GetTotalSentBytes / GetTotalReceivedBytes.... Range requests, for instance, may issue multiple requests, some may be served out of the cache, some may not be. I have no idea if network_accessed reflect the most recent request, or the first request, but I strongly suspect it doesn't represent whether any of them went over the network.
,
Oct 13 2016
There is a known bug in GetTotalSentBytes and GetTotalReceivedBytes where they don't take into account data use from previous jobs. See http://crbug/651957.
,
Oct 16 2017
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Dec 1 2017
|
||||
►
Sign in to add a comment |
||||
Comment 1 by kundaji@chromium.org
, Oct 7 2016