justheuristic 3 년 전
부모
커밋
0b19bf93c5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      hivemind/p2p/p2p_daemon_bindings/control.py

+ 2 - 2
hivemind/p2p/p2p_daemon_bindings/control.py

@@ -49,11 +49,11 @@ class DaemonConnector:
     async def open_connection(self) -> (asyncio.StreamReader, asyncio.StreamWriter):
         if self.proto_code == protocols.P_UNIX:
             control_path = self.control_maddr.value_for_protocol(protocols.P_UNIX)
-            return await asyncio.open_unix_connection(control_path)
+            return await asyncio.open_unix_connection(control_path, limit=2**30)
         elif self.proto_code == protocols.P_IP4:
             host = self.control_maddr.value_for_protocol(protocols.P_IP4)
             port = int(self.control_maddr.value_for_protocol(protocols.P_TCP))
-            return await asyncio.open_connection(host, port)
+            return await asyncio.open_connection(host, port, limit=2**30)
         else:
             raise ValueError(f"Protocol not supported: {protocols.protocol_with_code(self.proto_code)}")