From 226ae66f6d192abaf9ba9c4cdf63ae2a91129925 Mon Sep 17 00:00:00 2001 From: Carlos Sousa <40635471+CarlosEduR@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:51:52 -0300 Subject: [PATCH] fix high cpu consumption in idle mode, update idle_relaxation_time back to 0.01 (#198) --- src/socketify/socketify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socketify/socketify.py b/src/socketify/socketify.py index cce4fe3..b651960 100644 --- a/src/socketify/socketify.py +++ b/src/socketify/socketify.py @@ -2617,7 +2617,7 @@ class App: websocket_factory_max_items=0, task_factory_max_items=100_000, lifespan=True, - idle_relaxation_time=0, + idle_relaxation_time=0.01, ): socket_options_ptr = ffi.new("struct us_socket_context_options_t *")