Skip to content

Commit b2e8823

Browse files
committed
std::net: TcpListener shrinks the backlog argument to 32 for Haiku.
1 parent 7bdae13 commit b2e8823

File tree

1 file changed

+3
-0
lines changed
  • library/std/src/sys_common

1 file changed

+3
-0
lines changed

library/std/src/sys_common/net.rs

+3
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,9 @@ impl TcpListener {
417417
// it allows up to about 37, but other times it doesn't even
418418
// accept 32. There may be a global limitation causing this.
419419
let backlog = 20;
420+
} else if #[cfg(target_os = "haiku")] {
421+
// Haiku does not support a queue length > 32
422+
let backlog = 32;
420423
} else {
421424
// The default for all other platforms
422425
let backlog = 128;

0 commit comments

Comments
 (0)