Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d40c8a7

Browse files
committedAug 15, 2024··
proposal to expand (a subset of) linux specific socket capabilities.
to stabilise the quickack part for now, tcp_deferaccept had been added at a later stage.
1 parent 026e9ed commit d40c8a7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
 

‎library/std/src/os/android/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
pub use crate::os::net::linux_ext::addr::SocketAddrExt;
77
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
88
pub use crate::os::net::linux_ext::socket::UnixSocketExt;
9-
#[unstable(feature = "tcp_quickack", issue = "96256")]
9+
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
1010
pub use crate::os::net::linux_ext::tcp::TcpStreamExt;

‎library/std/src/os/linux/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
pub use crate::os::net::linux_ext::addr::SocketAddrExt;
77
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
88
pub use crate::os::net::linux_ext::socket::UnixSocketExt;
9-
#[unstable(feature = "tcp_quickack", issue = "96256")]
9+
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
1010
pub use crate::os::net::linux_ext::tcp::TcpStreamExt;

‎library/std/src/os/net/linux_ext/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub(crate) mod addr;
88
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
99
pub(crate) mod socket;
1010

11-
#[unstable(feature = "tcp_quickack", issue = "96256")]
11+
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
1212
pub(crate) mod tcp;
1313

1414
#[cfg(test)]

‎library/std/src/os/net/linux_ext/tcp.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::{io, net};
99
/// Os-specific extensions for [`TcpStream`]
1010
///
1111
/// [`TcpStream`]: net::TcpStream
12-
#[unstable(feature = "tcp_quickack", issue = "96256")]
12+
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
1313
pub trait TcpStreamExt: Sealed {
1414
/// Enable or disable `TCP_QUICKACK`.
1515
///
@@ -31,7 +31,7 @@ pub trait TcpStreamExt: Sealed {
3131
/// .expect("Couldn't connect to the server...");
3232
/// stream.set_quickack(true).expect("set_quickack call failed");
3333
/// ```
34-
#[unstable(feature = "tcp_quickack", issue = "96256")]
34+
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
3535
fn set_quickack(&self, quickack: bool) -> io::Result<()>;
3636

3737
/// Gets the value of the `TCP_QUICKACK` option on this socket.
@@ -50,7 +50,7 @@ pub trait TcpStreamExt: Sealed {
5050
/// stream.set_quickack(true).expect("set_quickack call failed");
5151
/// assert_eq!(stream.quickack().unwrap_or(false), true);
5252
/// ```
53-
#[unstable(feature = "tcp_quickack", issue = "96256")]
53+
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
5454
fn quickack(&self) -> io::Result<bool>;
5555

5656
/// A socket listener will be awakened solely when data arrives.
@@ -99,10 +99,10 @@ pub trait TcpStreamExt: Sealed {
9999
fn deferaccept(&self) -> io::Result<u32>;
100100
}
101101

102-
#[unstable(feature = "tcp_quickack", issue = "96256")]
102+
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
103103
impl Sealed for net::TcpStream {}
104104

105-
#[unstable(feature = "tcp_quickack", issue = "96256")]
105+
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
106106
impl TcpStreamExt for net::TcpStream {
107107
fn set_quickack(&self, quickack: bool) -> io::Result<()> {
108108
self.as_inner().as_inner().set_quickack(quickack)

0 commit comments

Comments
 (0)
Please sign in to comment.