/// Initial byte size of pooled TLS incoming/outgoing record buffers (fits one max 16 KiB TLS record + overhead).
pub const TLS_RECORD_BUFFER_SIZE: usize = 18 * 1024;
/// Maximum plaintext bytes encrypted into a single TLS record.
pub const TLS_MAX_PLAINTEXT_CHUNK: usize = 16 * 1024;
/// Maximum incoming ciphertext buffer growth allowed during handshake or record framing.
pub const TLS_MAX_INCOMING_BUFFER: usize = 64 * 1024;
/// Maximum outgoing ciphertext buffer growth allowed before failing a stalled connection.
pub const TLS_MAX_OUTGOING_BUFFER: usize = 256 * 1024;
/// Maximum consecutive empty TLS application-data records tolerated before rejecting the peer.
pub const TLS_MAX_EMPTY_APP_RECORDS: usize = 32;
/// Maximum number of reusable TLS record buffers kept per worker thread.
pub const MAX_POOLED_TLS_BUFFERS: usize = 64;
/// Failure reported if the TCP socket accepts no bytes during TLS transmission.
pub const TLS_TRANSMIT_WRITE_ZERO: &str = "tcp write zero during tls transmit";
/// Failure reported if the outgoing TLS ciphertext buffer exceeds its safety bound.
pub const TLS_OUTGOING_BUFFER_EXCEEDED: &str = "tls outgoing buffer exceeds limit";
/// Failure reported if a peer floods consecutive empty TLS application-data records.
pub const TLS_EMPTY_RECORDS_EXCEEDED: &str = "tls empty application records exceeded";