1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Network layer for Kafka connections.
//!
//! This module provides:
//! - TCP connection handling with priority-based request scheduling
//! - Connection pooling with coalesced, deadline-bounded reconnection
//! - Automatic reconnection with exponential backoff
//! - Request/response correlation
//! - TLS/SSL encrypted connections
//! - SASL authentication (PLAIN, SCRAM)
//!
//! # Request Priority
//!
//! Connections support automatic priority scheduling:
//! - **High priority**: Heartbeats, metadata, coordinator discovery
//! - **Normal priority**: Produce, fetch, and other data requests
//!
//! This prevents consumer group ejection during backpressure.
//!
//! # One connection per broker
//!
//! The pool holds exactly one multiplexed socket per broker, matching the
//! Apache Kafka Java client. The former `connections_per_broker` knob and its
//! `BrokerConnectionBundle` type were removed: nothing ever constructed a
//! bundle, so the knob was silently a no-op, and round-robining a partition's
//! produce requests across sockets would have broken the idempotent
//! producer's ordering guarantee — which holds per *connection*.
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;