We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bdae13 commit 1ce559bCopy full SHA for 1ce559b
library/std/src/sys_common/net.rs
@@ -417,6 +417,10 @@ 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
+ // https://github.com/haiku/haiku/blob/979a0bc487864675517fb2fab28f87dc8bf43041/headers/posix/sys/socket.h#L81
423
+ let backlog = 32;
424
} else {
425
// The default for all other platforms
426
let backlog = 128;
0 commit comments