We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8235599 commit 28d4ca9Copy full SHA for 28d4ca9
changelog/2572.added.md
@@ -0,0 +1 @@
1
+Added `sockopt::LingerSec` for Apple targets
src/sys/socket/sockopt.rs
@@ -374,8 +374,7 @@ sockopt_impl!(
374
);
375
#[cfg(apple_targets)]
376
sockopt_impl!(
377
- /// `SO_LINGER_SEC` on apple targets is the genuine equivalent to
378
- /// other platforms `SO_LINGER`. Indeed, the latter uses ticks.
+ /// Same as `SO_LINGER`, but the duration is in seconds rather than kernel ticks.
379
LingerSec,
380
Both,
381
libc::SOL_SOCKET,
0 commit comments