Skip to content

v2.0.3-ln.2 — corrective lifecycle release

Latest

Choose a tag to compare

@LimiNode LimiNode released this 26 Nov 19:27

This is a LimiNode-maintained downstream corrective release, not a release published by the original eidheim upstream project.

Fixes

  • Fix server shutdown deadlocks with an internal thread pool: worker threads are no longer joined while the lifecycle mutex is held.
  • Coordinate connection registration/publication with shutdown and launch generations, preventing cancelled or stale handshakes from republishing connections.
  • Track and clean up pending WS HTTP and WSS TLS handshakes during shutdown and destruction.
  • Protect synchronous upgrade() registration and handshake setup with ScopeRunner admission.
  • Prevent accept re-arming after stop_accept() for WS and WSS.
  • Remove send-queue/timer lock-order inversions and clean up client connection state after handshake errors, close, and stop.
  • Report invalid server addresses through the error-code path rather than terminating inside the address helper.
  • Add deterministic admission, shutdown, stale-generation, and internal-thread-pool regression tests, including WS/WSS and legacy Asio test compatibility.

The ScopeRunner trivial-TLS cleanup fix from v2.0.3-ln.1 is retained. No public runtime API changes are introduced.

Lifecycle contract

An on_open callback admitted before cancellation may begin after shutdown starts; external stop() waits for that admitted handler to finish. Calling stop() from its own callback requests cancellation but is not a barrier for other active callbacks.

Keep the owner alive until active callbacks and concurrent public member calls have returned. Do not synchronously destroy the owner from its own callback or make a callback wait for an external stop on the same owner. Restart is supported only after external drain and return of the prior start(); concurrent restart and restart from a callback remain unsupported.

Version and provenance

  • Tag: v2.0.3-ln.2.
  • CMake package version: 2.0.3.2 (the numeric projection of the downstream tag).
  • Source commit: 858dd176efa4b0e65b3c7ec59e3c87f7d5d71605.
  • Stabilization PR: #3, squash-merged as c9815ead60b50f44e194e3e6a0b68c0587ea2fa7.
  • Reviewed PR head: cbb3cb73de812e5c52432ec99300d696199ba98c; the subsequent release-preparation commit changes only version metadata/documentation.

Validation

  • Exact release-commit CI on master: 14/14 jobs passed — GCC/Clang/MSVC, C++11/C++17, standalone/Boost.Asio, MinGW, and Clang ASan/UBSan.
  • Reviewed PR head: push CI and PR CI, 14/14 jobs passed in each.
  • Local release-commit standalone C++11 suite: 11/11 passed; installed CMake package 2.0.3.2 EXACT consumer passed.
  • Kurlyk v1.1.1 WS/WSS standalone and Boost consumer integration passed against the same runtime headers: connect/disconnect, reconnect, active destruction, pending HTTP/TLS handshake cancellation, and deinitialization.
  • Targeted legacy standalone Asio 1.10.8 regression passed. This is not a claim of full legacy-matrix or TSan coverage.

Full changelog: v2.0.3-ln.1...v2.0.3-ln.2