We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bdae13 commit b2e8823Copy full SHA for b2e8823
library/std/src/sys_common/net.rs
@@ -417,6 +417,9 @@ impl TcpListener {
417
// it allows up to about 37, but other times it doesn't even
418
// accept 32. There may be a global limitation causing this.
419
let backlog = 20;
420
+ } else if #[cfg(target_os = "haiku")] {
421
+ // Haiku does not support a queue length > 32
422
+ let backlog = 32;
423
} else {
424
// The default for all other platforms
425
let backlog = 128;
0 commit comments