File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -1439,7 +1439,7 @@ impl crate::Socket {
1439
1439
}
1440
1440
1441
1441
/// Set the value of the `TCP_THIN_LINEAR_TIMEOUTS` option on this socket.
1442
- ///
1442
+ ///
1443
1443
/// If set, the kernel will dynamically detect a thin-stream connection if there are less than four packets in flight.
1444
1444
/// With less than four packets in flight the normal TCP fast retransmission will not be effective.
1445
1445
/// The kernel will modify the retransmission to avoid the very high latencies that thin stream suffer because of exponential backoff.
@@ -1484,15 +1484,13 @@ impl crate::Socket {
1484
1484
let mut buf: [ MaybeUninit < u8 > ; libc:: IFNAMSIZ ] =
1485
1485
unsafe { MaybeUninit :: uninit ( ) . assume_init ( ) } ;
1486
1486
let mut len = buf. len ( ) as libc:: socklen_t ;
1487
- unsafe {
1488
- syscall ! ( getsockopt(
1489
- self . as_raw( ) ,
1490
- libc:: SOL_SOCKET ,
1491
- libc:: SO_BINDTODEVICE ,
1492
- buf. as_mut_ptr( ) . cast( ) ,
1493
- & mut len,
1494
- ) ) ?;
1495
- }
1487
+ syscall ! ( getsockopt(
1488
+ self . as_raw( ) ,
1489
+ libc:: SOL_SOCKET ,
1490
+ libc:: SO_BINDTODEVICE ,
1491
+ buf. as_mut_ptr( ) . cast( ) ,
1492
+ & mut len,
1493
+ ) ) ?;
1496
1494
if len == 0 {
1497
1495
Ok ( None )
1498
1496
} else {
You can’t perform that action at this time.
0 commit comments