# HG changeset patch # User Milka Kuzminski # Date 2020-10-19 16:27:06 # Node ID 97e7c4690b3ba33c905db0068c0d8bd1c7982c46 # Parent 995c127a47f4c73ddf7d8ce9b4e4c36a46d16164 vcsserver: report set File Descriptors. diff --git a/vcsserver/http_main.py b/vcsserver/http_main.py --- a/vcsserver/http_main.py +++ b/vcsserver/http_main.py @@ -24,6 +24,7 @@ import uuid import wsgiref.util import traceback import tempfile +import resource from itertools import chain from cStringIO import StringIO @@ -122,6 +123,9 @@ class VCS(object): self.cache_config = cache_config self._configure_locale() + maxfd = resource.getrlimit(resource.RLIMIT_NOFILE)[1] + log.info('Max file descriptors value: %s', maxfd) + if GitFactory and GitRemote: git_factory = GitFactory() self._git_remote = GitRemote(git_factory)