@@ -912,7 +912,10 @@ fn tcp_keepalive() {
912912 feature = "all" ,
913913 not( any( windows, target_os = "haiku" , target_os = "openbsd" ) )
914914 ) ) ]
915- assert_eq ! ( socket. keepalive_time( ) . unwrap( ) , Duration :: from_secs( 200 ) ) ;
915+ assert_eq ! (
916+ socket. tcp_keepalive_time( ) . unwrap( ) ,
917+ Duration :: from_secs( 200 )
918+ ) ;
916919
917920 #[ cfg( all(
918921 feature = "all" ,
@@ -932,7 +935,7 @@ fn tcp_keepalive() {
932935 )
933936 ) ) ]
934937 assert_eq ! (
935- socket. keepalive_interval ( ) . unwrap( ) ,
938+ socket. tcp_keepalive_interval ( ) . unwrap( ) ,
936939 Duration :: from_secs( 30 )
937940 ) ;
938941
@@ -954,7 +957,7 @@ fn tcp_keepalive() {
954957 target_os = "windows" ,
955958 )
956959 ) ) ]
957- assert_eq ! ( socket. keepalive_retries ( ) . unwrap( ) , 10 ) ;
960+ assert_eq ! ( socket. tcp_keepalive_retries ( ) . unwrap( ) , 10 ) ;
958961}
959962
960963#[ cfg( all( feature = "all" , any( target_os = "fuchsia" , target_os = "linux" ) ) ) ]
@@ -1350,7 +1353,7 @@ const GET_BUF_SIZE: usize = SET_BUF_SIZE;
13501353#[ cfg( target_os = "linux" ) ]
13511354const GET_BUF_SIZE : usize = 2 * SET_BUF_SIZE ;
13521355
1353- test ! ( nodelay , set_nodelay ( true ) ) ;
1356+ test ! ( tcp_nodelay , set_tcp_nodelay ( true ) ) ;
13541357test ! (
13551358 recv_buffer_size,
13561359 set_recv_buffer_size( SET_BUF_SIZE ) ,
@@ -1383,8 +1386,8 @@ test!(reuse_port_lb, set_reuse_port_lb(true));
13831386) ) ]
13841387test ! (
13851388 #[ cfg_attr( target_os = "linux" , ignore = "Different value returned" ) ]
1386- mss ,
1387- set_mss ( 256 )
1389+ tcp_mss ,
1390+ set_tcp_mss ( 256 )
13881391) ;
13891392#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
13901393test ! (
@@ -1402,17 +1405,17 @@ test!(
14021405 feature = "all" ,
14031406 any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
14041407) ) ]
1405- test ! ( cork , set_cork ( true ) ) ;
1408+ test ! ( tcp_cork , set_tcp_cork ( true ) ) ;
14061409#[ cfg( all(
14071410 feature = "all" ,
14081411 any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
14091412) ) ]
1410- test ! ( quickack , set_quickack ( false ) ) ;
1413+ test ! ( tcp_quickack , set_tcp_quickack ( false ) ) ;
14111414#[ cfg( all(
14121415 feature = "all" ,
14131416 any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
14141417) ) ]
1415- test ! ( thin_linear_timeouts , set_thin_linear_timeouts ( true ) ) ;
1418+ test ! ( tcp_thin_linear_timeouts , set_tcp_thin_linear_timeouts ( true ) ) ;
14161419test ! ( linger, set_linger( Some ( Duration :: from_secs( 10 ) ) ) ) ;
14171420test ! (
14181421 read_timeout,
0 commit comments