Skip to content

Commit 28d4ca9

Browse files
committed
changelog entry
1 parent 8235599 commit 28d4ca9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

changelog/2572.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added `sockopt::LingerSec` for Apple targets

src/sys/socket/sockopt.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,7 @@ sockopt_impl!(
374374
);
375375
#[cfg(apple_targets)]
376376
sockopt_impl!(
377-
/// `SO_LINGER_SEC` on apple targets is the genuine equivalent to
378-
/// other platforms `SO_LINGER`. Indeed, the latter uses ticks.
377+
/// Same as `SO_LINGER`, but the duration is in seconds rather than kernel ticks.
379378
LingerSec,
380379
Both,
381380
libc::SOL_SOCKET,

0 commit comments

Comments
 (0)