Skip to content

Commit

Permalink
fix high cpu consumption in idle mode, update idle_relaxation_time ba…
Browse files Browse the repository at this point in the history
…ck to 0.01 (#198)
  • Loading branch information
CarlosEduR authored Oct 11, 2024
1 parent 63b1546 commit 226ae66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socketify/socketify.py
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ def __init__(
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 *")
Expand Down

0 comments on commit 226ae66

Please sign in to comment.