Skip to content

File SolidSyslogTunablesDefaults.h

FileList > Core > Interface > SolidSyslogTunablesDefaults.h

  • #include "SolidSyslogTcpConnectTimeoutFunction.h"

Detailed Description

The default values for every compile-time tunable - pool sizes, message / path / integrity limits, and timeouts - each #ifndef-guarded so a user override wins.

Reached through the SolidSyslogTunables.h umbrella.

Macro Definition Documentation

SOLIDSYSLOG_ADDRESS_POOL_SIZE

Role pool: Address.

#define SOLIDSYSLOG_ADDRESS_POOL_SIZE `3U`

Number of address instances each compiled implementation's static pool can hold at once.

Default 3 - matches the canonical BDD multi-transport wiring (UDP + plain-TCP + TLS-stream, one Address per Sender) so common integrators are spared an override. Same trade-off as SOLIDSYSLOG_TCP_STREAM_POOL_SIZE / _STREAM_SENDER_POOL_SIZE: single-transport integrators pay for two unused slots; multi-transport integrators get the canonical wiring out of the box. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if more than three concurrent senders are needed.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_AES_GCM_POLICY_POOL_SIZE

Role pool: AES-256-GCM SecurityPolicy.

#define SOLIDSYSLOG_AES_GCM_POLICY_POOL_SIZE `1U`

Number of keyed AEAD policy instances each compiled implementation's static pool can hold at once.

Default 1 - a single at-rest store with one confidentiality policy is the common case. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if more than one store with an independent key is genuinely needed.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_ATOMIC_COUNTER_POOL_SIZE

Role pool: AtomicCounter.

#define SOLIDSYSLOG_ATOMIC_COUNTER_POOL_SIZE `1U`

Number of atomic-counter instances each compiled implementation's static pool can hold at once.

Default 1 - RFC 5424 sequenceIds are scoped per SolidSyslog instance, and almost all integrators run a single SolidSyslog instance per process. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if more than one is genuinely needed.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_BLOCK_STORE_POOL_SIZE

Number of SolidSyslogBlockStore instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_BLOCK_STORE_POOL_SIZE `1U`

Sizes three pools 1:1 - the BlockStore slot itself, plus the TU-internal RecordStore and BlockSequence pools that each BlockStore composes. The 1:1 invariant means a BlockStore slot is guaranteed a free RecordStore and BlockSequence on Create; if any inner Create returns its fallback under normal use, the BlockStore as a whole resolves to SolidSyslogNullStore.

Default 1 - almost all integrators wire a single store-and-forward BlockStore. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if more than one is genuinely needed.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_CIRCULAR_BUFFER_POOL_SIZE

Number of SolidSyslogCircularBuffer instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_CIRCULAR_BUFFER_POOL_SIZE `1U`

Each instance is a small bookkeeping struct (vtable, mutex and ring pointers, positions, and the discard policy). The caller's ring memory is separate (passed to SolidSyslogCircularBuffer_Create).

Most integrators only ever create one CircularBuffer per process; default 1. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if the integrator needs multiple concurrent buffer instances.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_DATAGRAM_POOL_SIZE

Role pool: Datagram (UDP transport).

#define SOLIDSYSLOG_DATAGRAM_POOL_SIZE `1U`

Number of datagram instances each compiled implementation's static pool can hold at once.

Default 1 - almost all integrators wire a single datagram into a UdpSender. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if more than one is genuinely needed.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_DATAGRAM_RESOLVE_WAIT_MS

How long a Datagram waits for the next hop's link address to resolve before it hands a record to a stack that would otherwise hold or drop it.

#define SOLIDSYSLOG_DATAGRAM_RESOLVE_WAIT_MS `100U`

Used by the Datagram backends that confirm the next hop before sending; each says so on its platform page.

The wait is paid by the task that calls SolidSyslog_Service, or by the task that logs on an inline wiring, and only when the next hop is not already resolved: typically the first record after start-up or after the stack's entry has expired. A wait that ends unresolved returns FAILED, and the record waits for a later pass - in the store, or held by Service where there is none, until the buffer fills behind it and the discard policy decides; an inline wiring has nowhere to keep it, so there it is lost and reported. After a failed resolution a backend does not wait again until one succeeds, so an unreachable next hop costs one wait, not one per record.

Default 100 ms - an ARP reply on a local network arrives in well under a millisecond, so this allows for a slow peer without holding the servicing task for long. There is deliberately no runtime getter.

Floor: 1 ms. Sub-floor values rejected at compile time.


SOLIDSYSLOG_DNS_RESOLVE_TIMEOUT_MS

Bounded deadline (milliseconds) the SolidSyslogLwipRawDnsResolver waits for an async dns_gethostbyname lookup to complete before giving up and reporting a failed resolution.

#define SOLIDSYSLOG_DNS_RESOLVE_TIMEOUT_MS `5000U`

The synchronous Resolve() contract bridges lwIP's async DNS by spinning on the caller's thread (sleeping via the injected SolidSyslogSleepFunction) until the dns_found_callback fires or this deadline elapses.

Default 5000 ms - DNS is markedly slower than the 200 ms TCP connect: a cold lookup may traverse a recursive resolver and the network round-trip dominates. There is deliberately no per-instance runtime getter (unlike the TCP connect timeout); DNS timeout rarely needs live tuning. Override at build time via SOLIDSYSLOG_USER_TUNABLES_FILE if a deployment's resolver is slower.

Floor: 1 ms. Sub-floor values rejected at compile time.


SOLIDSYSLOG_FILE_BLOCK_DEVICE_POOL_SIZE

Number of SolidSyslogFileBlockDevice instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_FILE_BLOCK_DEVICE_POOL_SIZE `1U`

Each instance carries the cached open-file handle plus the path-prefix pointer.

Default 1 - almost all integrators wire a single FileBlockDevice as the backing store for one BlockStore. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if more than one is genuinely needed.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_FILE_DEFAULT_BLOCK_SIZE

Default per-block capacity (bytes) for file-backed block devices.

#define SOLIDSYSLOG_FILE_DEFAULT_BLOCK_SIZE `8192U`

Supplied to SolidSyslogFileBlockDevice_Create when the integrator has no specific size in mind; passing 0 to SolidSyslogFileBlockDevice_Create selects this default. A larger block holds more records before rotating to a fresh file; a smaller block rotates (and fsyncs) more often.

The default clears both the record floor below and the sector size a filesystem beneath the device may impose. Set this from the media's erase granularity where that is known.

Floor: one worst-case record - the max message plus the widest integrity tag plus the 5-byte record framing (2 magic + 2 length + 1 sent-flag). Below that a block could not hold a single record, so the default must clear it for every SecurityPolicy. Sub-floor values rejected at compile time.


SOLIDSYSLOG_FILE_POOL_SIZE

Role pool: File.

#define SOLIDSYSLOG_FILE_POOL_SIZE `1U`

Number of file instances each compiled implementation's static pool can hold at once.

Default 1 - almost all integrators wire a single file into a FileBlockDevice. Integrators using FileBlockDevice with BlockStore may want to bump this in line with SOLIDSYSLOG_BLOCK_STORE_POOL_SIZE via SOLIDSYSLOG_USER_TUNABLES_FILE.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_HMAC_SHA256_POLICY_POOL_SIZE

Role pool: HMAC-SHA256 SecurityPolicy.

#define SOLIDSYSLOG_HMAC_SHA256_POLICY_POOL_SIZE `1U`

Number of keyed HMAC policy instances each compiled implementation's static pool can hold at once.

Default 1 - a single at-rest store with one integrity policy is the common case. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if more than one store with an independent key is genuinely needed.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_LWIP_RAW_DNS_RESOLVE_POLL_MS

Period (milliseconds) the SolidSyslogLwipRawDnsResolver bounded-resolve spin loop sleeps between polls of the lwIP-side dns_found_callback done flag.

#define SOLIDSYSLOG_LWIP_RAW_DNS_RESOLVE_POLL_MS `10U`

Each iteration calls the integrator-injected SolidSyslogSleepFunction so the loop never busy-waits - under NO_SYS=1 the integrator's Sleep ticks sys_check_timeouts and drives the DNS retransmit timer; under NO_SYS=0 it yields to the tcpip thread (vTaskDelay or equivalent). Mirrors SOLIDSYSLOG_LWIP_RAW_TCP_CONNECT_POLL_MS.

Default 10 ms gives 500 polls inside the default 5000 ms resolve deadline.

Floor: 1 ms. Sub-floor values rejected at compile time.


SOLIDSYSLOG_LWIP_RAW_TCP_CONNECT_POLL_MS

Period (milliseconds) the SolidSyslogLwipRawTcpStream bounded-connect spin loop sleeps between polls of the lwIP-side connected_cb flag.

#define SOLIDSYSLOG_LWIP_RAW_TCP_CONNECT_POLL_MS `10U`

Each iteration calls the integrator-injected SolidSyslogSleepFunction so the loop never busy-waits - under NO_SYS=1 the integrator's Sleep implementation ticks sys_check_timeouts and drives RX; under NO_SYS=0 it yields to the tcpip thread (vTaskDelay or equivalent).

Default 10 ms gives 20 polls inside the default 200 ms connect deadline.

Floor: 1 ms. Sub-floor values rejected at compile time.


SOLIDSYSLOG_LWIP_RAW_TCP_RX_QUEUE_SIZE

Maximum number of struct pbuf* the SolidSyslogLwipRawTcpStream RX queue holds before backpressuring lwIP.

#define SOLIDSYSLOG_LWIP_RAW_TCP_RX_QUEUE_SIZE `8U`

Bounds the count of queued pbufs, not their byte volume - lwIP's TCP_WND and MEMP_NUM_PBUF cap upstream receive bytes; this knob caps how many segment-sized pbufs can pile up behind a slow Stream_Read drain before the tcp_recv callback returns non-ERR_OK so lwIP retains the pbuf and replays the callback later.

Default 8 - sized for the typical mTLS handshake flight (ServerHello + Certificate + ServerKeyExchange + ServerHelloDone is 2-4 segments; 8 leaves margin for cert chains and renegotiation traffic).

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_MAX_HMAC_KEY_SIZE

Maximum HMAC key length, in bytes, a keyed SecurityPolicy will fetch from its SolidSyslogKeyFunction into a transient on-stack buffer (wiped after each use).

#define SOLIDSYSLOG_MAX_HMAC_KEY_SIZE `64U`

Sized for the SHA-256 HMAC block (64 bytes): RFC 2104 keys up to the hash block size are used directly; longer keys are pre-hashed by the HMAC itself, so 64 covers the recommended range. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE only if an integrator's GetKey returns a longer key verbatim.

Floor: 32 (the SHA-256 output size, the RFC-recommended minimum key length).


SOLIDSYSLOG_MAX_INTEGRITY_SIZE

Maximum bytes of integrity-tag the library will reserve per record.

#define SOLIDSYSLOG_MAX_INTEGRITY_SIZE `32U`

Drives the RecordStore per-record buffer width - every record carries a tag this wide regardless of the active SolidSyslogSecurityPolicy. Default 32 fits HMAC-SHA256 (32 bytes) and AES-256-GCM (28); CRC-16 uses 2. A policy whose trailer is wider is refused; see SolidSyslogBlockStore_Create.

Floor: 4. Sub-floor values rejected at compile time.


SOLIDSYSLOG_MAX_MESSAGE_SIZE

Maximum bytes the library will format for a single syslog message.

#define SOLIDSYSLOG_MAX_MESSAGE_SIZE `480U`

Sizes the scratch SolidSyslog_Log formats a message in - on the stack of the task that logs, or once in static RAM under the shared scratch - the record slot each logger instance holds for SolidSyslog_Service (one per SOLIDSYSLOG_POOL_SIZE slot), each record a CircularBuffer ring is sized for, and the BlockStore's record buffer and minimum block size. A longer message is truncated, not dropped. Lower values save stack, static RAM and store footprint; higher values reduce truncation.

The default is the length RFC 5424 section 6.1 requires every transport receiver to accept, and so the largest a sender can emit with certainty of acceptance. That section recommends receivers accept more and permits any length: raise this where the receivers are known.

Floor: smallest size that can hold a meaningful RFC 5424 security event. A legal all-NILVALUE message is 16 bytes; this allows enough headroom for a real PRI, hostname, MSGID, and short payload. Sub-floor values rejected at compile time.

Ceiling: the record store carries a record's content length - the message plus 4 framing bytes (2 magic + 2 length) - in 16 bits, and a larger message would wrap it. Rejected at compile time.


SOLIDSYSLOG_MAX_PATH_SIZE

Maximum bytes the library will format for a single on-disk path produced by SolidSyslogFileBlockDevice (path prefix + two-digit sequence number + ".log" + null terminator).

#define SOLIDSYSLOG_MAX_PATH_SIZE `128U`

Caps both the per-call Formatter storage and the bounded prefix copy. A file backend that keeps the path of its open file, to open it again, keeps it in a buffer this size.

Floor: smallest size that still leaves room for a meaningful prefix after subtracting the 6-byte filename suffix and null terminator. 32 leaves 24 characters for the prefix - enough for any sane filesystem location. Sub-floor values rejected at compile time.


SOLIDSYSLOG_META_SD_POOL_SIZE

Number of SolidSyslogMetaSd instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_META_SD_POOL_SIZE `1U`

Default 1 - meta SD is typically wired into SolidSyslogConfig.Sd[] once per process.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_MUTEX_POOL_SIZE

Role pool: Mutex.

#define SOLIDSYSLOG_MUTEX_POOL_SIZE `1U`

Number of mutex instances each compiled implementation's static pool can hold at once.

Default 1 - most integrators wire a single mutex into a CircularBuffer or other thread-safe primitive. Targets that need more (e.g. a separate lifecycle mutex alongside a buffer mutex) bump this via SOLIDSYSLOG_USER_TUNABLES_FILE.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_NOR_FLASH_BLOCK_DEVICE_POOL_SIZE

Number of SolidSyslogNorFlashBlockDevice instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_NOR_FLASH_BLOCK_DEVICE_POOL_SIZE `1U`

Each instance carries its run of flash blocks and where the data of the block being appended to ends.

Default 1 - almost all integrators wire a single NorFlashBlockDevice as the backing store for one BlockStore. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if more than one is genuinely needed.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_NOR_FLASH_POOL_SIZE

Number of NorFlash instances each NorFlash implementation's internal static pool can simultaneously hold - one per flash part a SolidSyslogNorFlashBlockDevice is kept on.

#define SOLIDSYSLOG_NOR_FLASH_POOL_SIZE `1U`

Named for the role, so one tunable sizes whichever implementation the build links.

Default 1 - a store is kept on one part.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_ORIGIN_SD_POOL_SIZE

Number of SolidSyslogOriginSd instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_ORIGIN_SD_POOL_SIZE `1U`

Each instance carries the pre-formatted static-prefix Formatter storage (software, swVersion, enterpriseId) so the per-message Format only splices in the IP params. Larger per-slot footprint than the other SDs.

Default 1.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_PASSTHROUGH_BUFFER_POOL_SIZE

Number of SolidSyslogPassthroughBuffer instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_PASSTHROUGH_BUFFER_POOL_SIZE `1U`

Each instance is tiny (vtable + a Sender pointer).

PassthroughBuffer is the single-task "direct-send, no buffering" configuration - every integrator typically creates one. Default 1. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if more than one process or task needs its own passthrough Buffer instance.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_POOL_SIZE

Number of SolidSyslog instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_POOL_SIZE `1U`

Each instance costs a record slot of SOLIDSYSLOG_MAX_MESSAGE_SIZE bytes, for the record SolidSyslog_Service is dealing with, plus a struct of collaborator pointers, callbacks and flags. It also sizes the SolidSyslogSharedScratch pool, one buffer of SOLIDSYSLOG_MAX_MESSAGE_SIZE per slot, which a build pays for only when it links that class.

One instance per process is the supported configuration in this release, so leave this at 1. The tunable exists so the instance pool follows the same pattern as every other pool.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_POSIX_MESSAGE_QUEUE_BUFFER_POOL_SIZE

Number of SolidSyslogPosixMessageQueueBuffer instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_POSIX_MESSAGE_QUEUE_BUFFER_POOL_SIZE `1U`

Each instance carries an mqd_t plus the per-process queue name (Formatter storage).

Default 1 - almost all integrators wire a single MQ-backed buffer. Each slot opens its own queue, /solidsyslog_<pid>_<slot>, so instances in one process never share one.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_RESOLVER_POOL_SIZE

Role pool: Resolver.

#define SOLIDSYSLOG_RESOLVER_POOL_SIZE `1U`

Number of resolver instances each compiled implementation's static pool can hold at once.

Default 1 - almost all integrators wire a single resolver shared across their Senders. Each resolver has its own pool, so a build that links two can already hold one of each at the default; raising this raises every one of them.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_STREAM_SENDER_POOL_SIZE

Number of SolidSyslogStreamSender instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_STREAM_SENDER_POOL_SIZE `2U`

Each instance carries its config (resolver/stream/endpoint pointers) and connection state.

Default 2 - common multi-transport wirings combine a plain TCP stream sender with a TLS stream sender behind a SwitchingSender so a TLS failure can fall back to plain TCP (or vice-versa). A pool of 1 would starve the second branch, resolving it to the shared SolidSyslogNullSender and reporting POOL_EXHAUSTED. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE for wirings that need more.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_SWITCHING_SENDER_POOL_SIZE

Number of SolidSyslogSwitchingSender instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_SWITCHING_SENDER_POOL_SIZE `1U`

Default 1 - a SwitchingSender wraps several inner senders, so one per process is the typical pattern. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if more than one is genuinely needed.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_TCP_CONNECT_TIMEOUT_MS

Default bounded-connect deadline applied by every TCP Stream backend when the integrator does not install a SolidSyslogTcpConnectTimeoutFunction on the config struct.

#define SOLIDSYSLOG_TCP_CONNECT_TIMEOUT_MS `200U`

The default sits below one SYN retransmission, which is deliberate rather than an oversight: a TCP stack waits on the order of a second to three before retrying a SYN it believes was lost, and a connect held open that long stalls the servicing pass behind it. So a connect whose SYN is lost fails here instead of waiting for the retry, and the next servicing pass attempts a fresh connect.

That is safe wherever a failed send keeps the record: a store replays it, and with no store Service holds it and retries it on its next pass, unless the buffer fills behind it first, when the discard policy decides: Oldest drops it and Halt stops the logger. Only an inline wiring - a PassthroughBuffer, which sends from inside SolidSyslog_Log - has nowhere to keep it, so there one lost SYN loses one record. If you send inline over TCP or TLS and losing a record matters, raise this above your stack's initial SYN retransmission timeout so a lost SYN is retried inside the budget.

Weigh that against what a longer deadline costs. Service stops at the first send that fails, store or no store, so an unreachable destination stalls each servicing pass by one deadline; an inline wiring pays it on the logging task instead, once for every record logged while the destination is down.

Runtime override: install GetConnectTimeoutMs on the per-Stream config - the getter is invoked on every connect attempt so live tuning takes effect without rebuilding or recreating the stream.

Floor: 1 ms. Ceiling: SOLIDSYSLOG_TCP_CONNECT_TIMEOUT_MS_MAX, which the contract header states. Values outside the range are rejected at compile time.


SOLIDSYSLOG_TCP_KEEPALIVE_IDLE_SECONDS

Idle period a TCP connection may sit silent before the first keepalive probe is sent.

#define SOLIDSYSLOG_TCP_KEEPALIVE_IDLE_SECONDS `45U`

This and the two tunables below are applied by every TCP Stream backend that can set keepalive on its own connection; a backend whose stack sets keepalive globally says so on its platform page.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_TCP_KEEPALIVE_INTERVAL_SECONDS

Interval between keepalive probes once the idle period has elapsed.

#define SOLIDSYSLOG_TCP_KEEPALIVE_INTERVAL_SECONDS `10U`

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_TCP_KEEPALIVE_PROBE_COUNT

Unanswered keepalive probes tolerated before the peer is declared dead.

#define SOLIDSYSLOG_TCP_KEEPALIVE_PROBE_COUNT `4U`

Floor: 1. Ceiling: the keepalive window, the idle period plus the interval across every probe, must not exceed 2147483 s, so that it is still representable in milliseconds as a signed 32-bit value. Values outside the range are rejected at compile time.


SOLIDSYSLOG_TCP_STREAM_POOL_SIZE

Role pool: TCP stream.

#define SOLIDSYSLOG_TCP_STREAM_POOL_SIZE `2U`

Number of TCP stream instances each compiled implementation's static pool can hold at once.

Default 2 - common multi-transport wirings combine a plain TCP stream with a second TCP stream that underlies a TLS stream (TLS wraps an injected Stream as its byte transport), so with a pool of 1 the second Create falls back to NullStream and reports POOL_EXHAUSTED. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE for wirings that need more.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_TIME_QUALITY_SD_POOL_SIZE

Number of SolidSyslogTimeQualitySd instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_TIME_QUALITY_SD_POOL_SIZE `1U`

Default 1.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_TLS_CREDENTIALS_POOL_SIZE

Role pool: TLS credentials.

#define SOLIDSYSLOG_TLS_CREDENTIALS_POOL_SIZE `1U`

Number of credentials instances each compiled implementation's static pool can hold at once.

Default 1 - one source per TLS stream is the ordinary wiring. Bump it alongside SOLIDSYSLOG_TLS_STREAM_POOL_SIZE where several streams draw on separate sources.

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_TLS_HANDSHAKE_TIMEOUT_MS

Default bounded TLS handshake deadline applied by every TLS Stream backend when the integrator does not install a SolidSyslogTlsHandshakeTimeoutFunction on the config struct.

#define SOLIDSYSLOG_TLS_HANDSHAKE_TIMEOUT_MS `5000U`

5 s covers a full TLS 1.2 / 1.3 exchange on a healthy LAN with cert validation; raise it for WAN deployments or constrained MCUs that handshake slowly.

Runtime override: install GetHandshakeTimeoutMs on the per-Stream config - the getter is invoked on every handshake attempt so live tuning takes effect without rebuilding or recreating the stream.

Between attempts the handshake asks Sleep for 10 ms, or for what is left of the budget where that is less, so a budget under 10 ms allows a single retry.

Floor: 1 ms. Sub-floor values rejected at compile time.


SOLIDSYSLOG_TLS_STREAM_POOL_SIZE

Role pool: TLS stream.

#define SOLIDSYSLOG_TLS_STREAM_POOL_SIZE `1U`

Number of TLS stream instances each compiled implementation's static pool can hold at once.

Default 1 - TLS senders are scoped per destination and almost all integrators wire a single TLS sender per process. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if more than one is genuinely needed (e.g. multi-destination egress with separate TLS sessions per peer).

Floor: 1. Sub-floor values rejected at compile time.


SOLIDSYSLOG_UDP_IPV4_PAYLOAD_LIMIT

IPv4 UDP payload limit, in bytes, for a Datagram whose stack cannot discover the path MTU and whose integrator has not stated one through its SolidSyslogUdpPayloadLimitFunction.

#define SOLIDSYSLOG_UDP_IPV4_PAYLOAD_LIMIT `480U`

A Datagram that reads the path MTU from its stack never consults this; each platform page says which it is.

Default 480 - the size RFC 5426 section 3.2 names as the safest assumption for a sender that does not know the path. On a known path raise it to what the path carries unfragmented: 1472 on 1500-byte Ethernet. Never guess high: the sender trims an oversize record to this and retries, so a figure the path cannot carry loses the record.

Floor: 1. Ceiling: 65507, the largest payload an IPv4 datagram can hold. Values outside rejected at compile time.


SOLIDSYSLOG_UDP_SENDER_POOL_SIZE

Number of SolidSyslogUdpSender instances the library's internal static pool can simultaneously hold.

#define SOLIDSYSLOG_UDP_SENDER_POOL_SIZE `1U`

Each instance carries its config (resolver/datagram/endpoint pointers), the resolved address storage, and connection state.

Default 1 - almost all integrators wire a single UDP sender into either SolidSyslogConfig directly or as one branch of a SwitchingSender. Bump via SOLIDSYSLOG_USER_TUNABLES_FILE if more than one is genuinely needed.

Floor: 1. Sub-floor values rejected at compile time.



The documentation for this class was generated from the following file Core/Interface/SolidSyslogTunablesDefaults.h