Skip to main content

Module tcp_transport

Module tcp_transport 

Source
Expand description

§Plain-text TCP transport

An unencrypted transport for local testing and private-LAN deployments where TLS is unnecessary. Frames requests and responses with tokio-util’s LengthDelimitedCodec — each message is prefixed with a u32 length, so there’s no application-level ambiguity about where one message ends and the next begins.

Uses the same pluggable [hashiverse_lib::transport::ddos::ddos::DdosProtection] trait as the HTTPS transport, so NoopDdosProtection, MemDdos, or the ipset-backed protection can all drop in unchanged. Per-request timeout is 2 seconds; anything slower is considered either a buggy client or a slow-loris probe.

Structs§

TcpTransportFactory
TcpTransportServer