File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -81,21 +81,25 @@ impl UnixListener {
81
81
) ) ]
82
82
const backlog: core:: ffi:: c_int = 128 ;
83
83
#[ cfg( any(
84
+ // Silently capped to `/proc/sys/net/core/somaxconn`.
84
85
target_os = "linux" ,
86
+ // Silently capped to `kern.ipc.soacceptqueue`.
85
87
target_os = "freebsd" ,
88
+ // Silently capped to `kern.somaxconn sysctl`.
86
89
target_os = "openbsd" ,
87
- target_os = "macos"
90
+ // Silently capped to the default 128.
91
+ target_vendor = "apple" ,
88
92
) ) ]
89
93
const backlog: core:: ffi:: c_int = -1 ;
90
94
#[ cfg( not( any(
91
95
target_os = "windows" ,
92
96
target_os = "redox" ,
97
+ target_os = "espidf" ,
98
+ target_os = "horizon" ,
93
99
target_os = "linux" ,
94
100
target_os = "freebsd" ,
95
101
target_os = "openbsd" ,
96
- target_os = "macos" ,
97
- target_os = "espidf" ,
98
- target_os = "horizon"
102
+ target_vendor = "apple" ,
99
103
) ) ) ]
100
104
const backlog: libc:: c_int = libc:: SOMAXCONN ;
101
105
You can’t perform that action at this time.
0 commit comments