From 1853a6c5bdc8acb0ebef904e7c6cbf101cbe7eea Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 28 Nov 2026 20:46:41 +0100 Subject: Clamp poll backend to 0 workers on error, not 1 --- src/ot_config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ot_config.c b/src/ot_config.c index a4c2a47..e689314 100644 --- a/src/ot_config.c +++ b/src/ot_config.c @@ -485,10 +485,10 @@ static void listen_resolve_defaults(void) { /* A tcp worker hands a connection it cannot finish to the event loop, which only one thread may touch where the set is ours rather than the kernel's */ - if (entry->proto == FLAG_TCP && entry->workers > 1 && !event_can_share()) { - fprintf(stderr, "Warning: Multiple workers impossible on this platform with event mechanism %s chosen.\n", + if (entry->proto == FLAG_TCP && entry->workers > 0 && !event_can_share()) { + fprintf(stderr, "Warning: tcp workers impossible on this platform with event mechanism %s chosen.\n", event_mechanism()); - entry->workers = 1; + entry->workers = 0; } } } -- cgit v1.3