Skip to main content

Module connector

Module connector 

Source
Expand description

Wrapper around handshake logic that also opens a TCP connection.

Structs§

Connector
A wrapper around Handshake that opens a TCP connection before forwarding to the inner handshake service. Writing this as its own [tower::Service] lets us apply unified timeout policies, etc.
OutboundConnectorRequest
A connector request. Contains the information needed to make an outbound connection to the peer.

Functions§

connect_tcp_nodelay 🔒
Opens a TCP connection to the peer at addr, with set_tcp_nodelay applied.
set_tcp_nodelay 🔒
Disables Nagle’s algorithm on a peer’s TCP connection.