Session Resumption Framework and Multi-Platform Pipeline Automation
This major update introduces a high-performance Session Resumption (Fast Reconnect) mechanism to bypass heavy post-quantum handshakes on reconnections. We have also standardized automated workflows across Windows, Linux, and macOS.
Key Changes & Resolved Issues
- Post-Quantum Session Resumption (Issue #4): Implemented a stateful session-resumption layer. Using a secure server-side
SessionStoreand AES-GCM Ticket encryption, returning clients can now reuse negotiated master keys. This completely bypasses heavy ML-KEM-768 math, drastically reducing latency on reconnects. - Lock-Based Client Caching: Integrated active session caching on the client side with strict mutex-based synchronization to prevent race conditions during concurrent connection spawns.
- Standardized Bash Automation (
test.sh): Added a Linux and macOS native verification script to parity the Windows PowerShell workflow. It executes formatting, module tidying, go vet, fuzzing, race detection, and cross-compilation. - Apple Silicon & macOS Support: Upgraded the compilation pipeline to cross-compile optimized production binaries for macOS Intel (
darwin/amd64) and macOS Apple Silicon (darwin/arm64), outputting all artifacts to the managed./dist/directory.
Performance & Resilience Validation
The new session resumption pipeline was verified under race-detector conditions. Tests confirm smooth fallback behavior: once the Session TTL expires, both client and server gracefully fall back to a full hybrid PQC handshake without dropping active connections.
Verification
To run the new multi-platform test suite, format check, and compile all binaries (Windows, Linux, macOS) locally:
On Linux/macOS:
chmod +x test.sh
./test.sh
On Windows:
.\test.ps1