Skip to content

Commit 226ae66

Browse files
authored
fix high cpu consumption in idle mode, update idle_relaxation_time back to 0.01 (#198)
1 parent 63b1546 commit 226ae66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socketify/socketify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2617,7 +2617,7 @@ def __init__(
26172617
websocket_factory_max_items=0,
26182618
task_factory_max_items=100_000,
26192619
lifespan=True,
2620-
idle_relaxation_time=0,
2620+
idle_relaxation_time=0.01,
26212621
):
26222622

26232623
socket_options_ptr = ffi.new("struct us_socket_context_options_t *")

0 commit comments

Comments
 (0)