This is an archive of the discontinued Mercurial Phabricator instance.

keepalive: track request count and bytes sent
ClosedPublic

Authored by indygreg on Oct 3 2018, 12:51 PM.

Details

Summary

I want wire protocol interactions to report the number of
requests made and bytes transferred.

This commit teaches the very low-level custom HTTPConnection class
to track the number of bytes sent to the socket. This may vary from
the number of bytes that go on the wire due to e.g. TLS. That's OK.

KeepAliveHandler is taught to track the total number of requests
and total number of bytes sent across all requests.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Oct 3 2018, 12:51 PM
This revision was automatically updated to reflect the committed changes.