mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 05:12:41 +01:00
No description
f8c2225268
Summary: Ref T11672. Depends on D16577. When establishing a connection from a webserver context, try to use persistent connections. The hope is that this will fix outbound port exhaustion issues experienced on repository hosts handling large queue volumes. Test Plan: Added this to a page: ```lang=php $tables = array( new PhabricatorUser(), new ManiphestTask(), new DifferentialRevision(), new PhabricatorRepository(), new PhabricatorPaste(), ); $ids = array(); foreach ($tables as $table) { $conn = $table->establishConnection('r'); $cid = queryfx_one( $conn, 'SELECT CONNECTION_ID() cid'); $ids[get_class($table)] = $cid['cid']; } var_dump($ids); ``` Reloaded the page a bunch of times and saw no reissued connections (the pool seems to keep a particular connection bound to a particular database), but did see connection reuse across requests. That is, across reloads the same connection IDs appeared, but the same connection ID never appeared twice in the same request. This is what we want. Also googled for issues with persistent connections, but everything I found was unconcerning and obscure (local variables and other very complex state that we don't use), and a bunch of the docs are reassuring (transactions, etc., get reset properly). Reviewers: chad Reviewed By: chad Maniphest Tasks: T11672 Differential Revision: https://secure.phabricator.com/D16578 |
||
---|---|---|
bin | ||
conf | ||
externals | ||
resources | ||
scripts | ||
src | ||
support | ||
webroot | ||
.arcconfig | ||
.arclint | ||
.arcunit | ||
.editorconfig | ||
.gitignore | ||
LICENSE | ||
NOTICE | ||
README.md |
Phabricator is a collection of web applications which help software companies build better software.
Phabricator includes applications for:
- reviewing and auditing source code;
- hosting and browsing repositories;
- tracking bugs;
- managing projects;
- conversing with team members;
- assembling a party to venture forth;
- writing stuff down and reading it later;
- hiding stuff from coworkers; and
- also some other things.
You can learn more about the project (and find links to documentation and resources) at Phabricator.org
Phabricator is developed and maintained by Phacility.
SUPPORT RESOURCES
For resources on filing bugs, requesting features, reporting security issues, and getting other kinds of support, see Support Resources.
NO PULL REQUESTS!
We do not accept pull requests through GitHub. If you would like to contribute code, please read our Contributor's Guide.
LICENSE
Phabricator is released under the Apache 2.0 license except as otherwise noted.