Home GnuPG

Support an explicit connection timeout parameter for database connections
3d31d3874f1bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Support an explicit connection timeout parameter for database connections

Summary:
Ref T6238. On the instance management interface, I want to check if an instance's database is reachable by connecting to it.

If it isn't, we hang for 30-60 seconds (default connection timeout). Allow explicit specification of a timeout when establishing a connection instead.

This only does MySQLi, not MySQL. We don't need MySQL for now, although it would be nice to support it eventually (Ref T6710).

Test Plan:

  • Browsed around.
  • Used short timeouts to get instance database status in instance management.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T6238, T6710

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

Details

Provenance
epriestley <git@epriestley.com>Authored on Dec 8 2014, 8:27 PM
Parents
rPHUTILdd243f1298de: Minor linter fix
Branches
Unknown
Tags
Unknown

Event Timeline