mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
chg: remove hacks reducing idletimeout
Summary: It was used to reduce process count on laptops. Now chg server can be reused across different `--config`, `HGPLAIN` settings, it's no longer necessary to keep the hack. Reviewed By: singhsrb Differential Revision: D7847150 fbshipit-source-id: d4f98debb5e9eb4f2c3f8575532cc833c61e4b1d
This commit is contained in:
parent
b8dcc85bd7
commit
7ef0f57c6a
@ -46,7 +46,6 @@ import os
|
||||
import re
|
||||
import socket
|
||||
import struct
|
||||
import sys
|
||||
import time
|
||||
|
||||
from .i18n import _
|
||||
@ -477,10 +476,6 @@ class chgunixservicehandler(object):
|
||||
def __init__(self, ui):
|
||||
self.ui = ui
|
||||
self._idletimeout = ui.configint('chgserver', 'idletimeout')
|
||||
if (pycompat.isdarwin and self._idletimeout and
|
||||
(any(s.startswith('--config') for s in sys.argv) or ui.plain())):
|
||||
# Not the common end-user case - exit earlier
|
||||
self._idletimeout = max(self._idletimeout, 30)
|
||||
self._lastactive = time.time()
|
||||
|
||||
def bindsocket(self, sock, address):
|
||||
|
Loading…
Reference in New Issue
Block a user