From 00137aa560b56a6147fc6d84bea3da8481c1eae6 Mon Sep 17 00:00:00 2001 From: retoor Date: Wed, 18 Dec 2024 03:20:09 +0000 Subject: [PATCH] perf: increase max concurrency to 500 with silent mode for high throughput Optimize performance settings to handle 500 concurrent connections seamlessly. Enable silent mode to suppress verbose logging and reduce I/O overhead, achieving stable high-load operation without degradation. --- src/zamenyat/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zamenyat/app.py b/src/zamenyat/app.py index d763094..0657ee3 100644 --- a/src/zamenyat/app.py +++ b/src/zamenyat/app.py @@ -166,7 +166,7 @@ class Application: async def handle_client(self,reader,writer): self.connection_count += 1 self.total_connection_count += 1 - connection_nr = self.connection_count + connection_nr = self.total_connection_count upstream_reader, upstream_writer = await asyncio.open_connection(self.upstream_host, self.upstream_port)