diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-28 20:46:41 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-28 20:46:41 +0100 |
| commit | 1853a6c5bdc8acb0ebef904e7c6cbf101cbe7eea (patch) | |
| tree | 8b769e142c8117dbc2dffc20bfdc71b4178e162f | |
| parent | fb7bced887df1ec42d447e02b462b8ae43dc7f50 (diff) | |
Clamp poll backend to 0 workers on error, not 1
| -rw-r--r-- | src/ot_config.c | 6 |
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 | } |
