This is an archive of the discontinued Mercurial Phabricator instance.

keepalive: implement _close_conn() so closes are known
ClosedPublic

Authored by indygreg on Jan 26 2019, 5:33 PM.

Details

Summary

Keepalives were not working on Python 3 because
http.client.HTTPResponse was refactored to call _close_conn()
instead of close(). Our custom close() is what returns inactive
connections to the available state.

We better support Python 3 by implementing a _close_conn().

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Jan 26 2019, 5:33 PM
This revision was automatically updated to reflect the committed changes.