Skip to main content

serve_activated

Function serve_activated 

Source
pub(crate) async fn serve_activated<S>(
    service: S,
    listener: ActivatedListener,
) -> Result<()>
where S: Service<Stream>,
Expand description

Serve service on an already-obtained socket-activated listener.

Status is logged, never written to stdout: under socket activation (e.g. varlinkctl’s exec: transport) the parent may treat our stdout as part of the protocol handshake, and any stray bytes there reset the connection.