diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-10-09 23:01:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 23:01:35 +0200 |
commit | 34fd0c3db18f7f5da558d8a8294e7fea61224186 (patch) | |
tree | ccdefaa84b6e4933c00a094aacc040e97e8b6f34 /extensions/PhabBugz/lib/Constants.pm | |
parent | 75dbfe1dc03748957f07eca5ac583bedc6fdba76 (diff) | |
download | bugzilla-34fd0c3db18f7f5da558d8a8294e7fea61224186.tar.gz bugzilla-34fd0c3db18f7f5da558d8a8294e7fea61224186.tar.xz |
Bug 1496832 - Add timeouts to prevent feed daemon from becoming unresponsive
Diffstat (limited to 'extensions/PhabBugz/lib/Constants.pm')
-rw-r--r-- | extensions/PhabBugz/lib/Constants.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/PhabBugz/lib/Constants.pm b/extensions/PhabBugz/lib/Constants.pm index 1692f8fb9..19987de25 100644 --- a/extensions/PhabBugz/lib/Constants.pm +++ b/extensions/PhabBugz/lib/Constants.pm @@ -19,6 +19,7 @@ our @EXPORT = qw( PHAB_FEED_POLL_SECONDS PHAB_USER_POLL_SECONDS PHAB_GROUP_POLL_SECONDS + PHAB_TIMEOUT ); use constant PHAB_ATTACHMENT_PATTERN => qr/^phabricator-D(\d+)/; @@ -27,5 +28,6 @@ use constant PHAB_CONTENT_TYPE => 'text/x-phabricator-request'; use constant PHAB_FEED_POLL_SECONDS => $ENV{PHAB_FEED_POLL} // 5; use constant PHAB_USER_POLL_SECONDS => $ENV{PHAB_USER_POLL} // 60; use constant PHAB_GROUP_POLL_SECONDS => $ENV{PHAB_GROUP_POLL} // 300; +use constant PHAB_TIMEOUT => $ENV{PHAB_TIMEOUT} // 60; 1; |