summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-11-28 20:46:41 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-11-28 20:46:41 +0100
commit1853a6c5bdc8acb0ebef904e7c6cbf101cbe7eea (patch)
tree8b769e142c8117dbc2dffc20bfdc71b4178e162f /src
parentfb7bced887df1ec42d447e02b462b8ae43dc7f50 (diff)
Clamp poll backend to 0 workers on error, not 1
Diffstat (limited to 'src')
-rw-r--r--src/ot_config.c6
1 files 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) {
485 /* A tcp worker hands a connection it cannot finish to the event loop, 485 /* A tcp worker hands a connection it cannot finish to the event loop,
486 which only one thread may touch where the set is ours rather than the 486 which only one thread may touch where the set is ours rather than the
487 kernel's */ 487 kernel's */
488 if (entry->proto == FLAG_TCP && entry->workers > 1 && !event_can_share()) { 488 if (entry->proto == FLAG_TCP && entry->workers > 0 && !event_can_share()) {
489 fprintf(stderr, "Warning: Multiple workers impossible on this platform with event mechanism %s chosen.\n", 489 fprintf(stderr, "Warning: tcp workers impossible on this platform with event mechanism %s chosen.\n",
490 event_mechanism()); 490 event_mechanism());
491 entry->workers = 1; 491 entry->workers = 0;
492 } 492 }
493 } 493 }
494} 494}