3 final class PhabricatorClientConnectionLimit
4 extends PhabricatorClientLimit
{
6 protected function getBucketDuration() {
10 protected function getBucketCount() {
14 protected function shouldRejectConnection($score) {
15 // Reject connections if the cumulative score across all buckets exceeds
17 return ($score > $this->getLimit());
20 protected function getConnectScore() {
24 protected function getPenaltyScore() {
28 protected function getDisconnectScore(array $request_state) {
32 protected function getRateLimitReason($score) {
33 $client_key = $this->getClientKey();
35 // NOTE: This happens before we load libraries, so we can not use pht()
39 "TOO MANY CONCURRENT CONNECTIONS\n".
40 "You (\"{$client_key}\") have too many concurrent ".