Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking Issue for tcp_deferaccept #119639

Open
devnexen opened this issue Jan 5, 2024 · 0 comments
Open

Tracking Issue for tcp_deferaccept #119639

devnexen opened this issue Jan 5, 2024 · 0 comments
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@devnexen
Copy link
Contributor

devnexen commented Jan 5, 2024

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.

@devnexen devnexen added C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

1 participant