Tracking Issue for tcp_deferaccept · Issue #119639 · rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@devnexen

Description

@devnexen

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; fn set_deferaccept(&self, accept: u32) -> io::Result<()>; }

This feature directly translates to the underlying native Linux TCP_DEFER_ACCEPT tcp(7) option.