Homec4science

Record the last time a connection was used on the connection object

Authored by epriestley <git@epriestley.com> on Aug 11 2016, 17:49.

Description

Record the last time a connection was used on the connection object

Summary:
Ref T11458. Currently, we're very aggressive about closing connections.

I want to change things so we only close connections we haven't used recently (for example: no activity in the last 15 seconds). This should let us do a better job of holding open approximately only the connections we actually need in a wider range of cases.

Test Plan:
Ran some code that uses queries.

This doesn't do anything on its own; see next diff in Phabricator for meaningful changes.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11458

Differential Revision: https://secure.phabricator.com/D16388

Details

Committed
epriestley <git@epriestley.com>Aug 11 2016, 21:03
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU73e2a1984abf: Discard futures after they resolve in phage
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU9c03af69571f: Record the last time a connection was used on the connection object (authored by epriestley <git@epriestley.com>).Aug 11 2016, 21:03