From 7bcb0f97d600c5ce76a6e0053ed82e3ed754bd85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Borgstr=C3=B6m?= Date: Mon, 17 Feb 2014 21:16:04 +0100 Subject: [PATCH] Slightly lower the number of file descriptors kept open This is needed to support old version of sftp-server that only support 100 open file descriptors. Closes #40. --- attic/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attic/repository.py b/attic/repository.py index 2f3fb366b..50dcd5644 100644 --- a/attic/repository.py +++ b/attic/repository.py @@ -357,7 +357,7 @@ class LoggedIO(object): _commit = header_no_crc_fmt.pack(9, TAG_COMMIT) COMMIT = crc_fmt.pack(crc32(_commit)) + _commit - def __init__(self, path, limit, segments_per_dir, capacity=100): + def __init__(self, path, limit, segments_per_dir, capacity=90): self.path = path self.fds = LRUCache(capacity) self.segment = 0