# HG changeset patch # User Martin Bornhold # Date 2016-07-05 07:37:57 # Node ID 12bfd543816dd4e1631e9a61f8e8f5f5a9e72f25 # Parent 4f555b5539b6930f7364de22e830d4f39b3360a9 pyro: Slightly improved log message and comment. diff --git a/rhodecode/lib/vcs/client.py b/rhodecode/lib/vcs/client.py --- a/rhodecode/lib/vcs/client.py +++ b/rhodecode/lib/vcs/client.py @@ -231,10 +231,11 @@ class RequestScopeProxyFactory(object): try: proxy = self._proxy_pool.pop() except IndexError: - log.info('Creating new proxy for remote_uri=%s', self._remote_uri) + log.info('Creating pyro proxy for remote_uri=%s', self._remote_uri) proxy = Pyro4.Proxy(self._remote_uri) - # Store proxy instance as borrowed and add request callback. + # Mark proxy as borrowed for the request context and add a callback + # that returns it when the request processing is finished. self._borrowed_proxies[request] = proxy request.add_finished_callback(self._returnProxy)