Ktor 2.0 HttpClient connection pool memory leak fix: Is the CIO engine fully leak‑free after 2.0.1?
Goal Determine whether the CIO engine’s connection pool in Ktor 2.0.1 eliminates all coroutine context and ByteBuffer leaks observed in 2.0.0 under high‑concurrency workloads. Constraints Use the default CIO engine, issue thousands of short‑lived requests, and monitor JVM heap for retained coroutine contexts and pooled ByteBuffers. The test environment must