Module connection

Source
Expand description

Connection management for Unix socket communication with the pool server.

Provides:

  • Fresh connection per request (prevents response mixing under high concurrency)
  • Semaphore-based concurrency limiting
  • RAII connection guards for automatic cleanup

Structsยง

ConnectionPool
Connection manager for Unix socket connections.
PoolConnection
A single connection to the pool server (single-use, not pooled)
PooledConnection
RAII wrapper that returns connection to pool on drop