-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Feature gate: #![feature(tcp_deferaccept)]
This is a tracking issue for the tcp_deferaccept feature.
It allows for the current socket to delay the acceptance of a connection until data is available to be read
Public API
It expands the existing Linux's TcpStreamExt
trait with
pub trait TcpStreamExt: Sealed{
fn deferaccept(&self) -> io::Result<u32>;
fn set_deferaccept(&self, accept: u32) -> io::Result<()>;
}
This feature directly translates to the underlying native Linux TCP_DEFER_ACCEPT
tcp(7) option.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.