Root cause
The test io.ktor.client.tests.HttpTimeoutTest.testGetRequestTimeoutWithSeparateReceivePerRequestAttributes intermittently fails on linuxX64 with the Curl engine.
Error: The test expects a successful response after a timeout is reset per-request, but both retry attempts fail with HttpRequestTimeoutException for the Curl engine. The CIO engine passes on the second attempt. This suggests the Curl engine on Linux native does not properly honor per-request timeout attribute overrides when receiving a streaming response.
Reproduction
Fails intermittently on TeamCity linuxX64 builds. Example builds:
Impact
This failure is present on the release/3.x base branch (various HttpTimeoutTest variants) and affects PRs targeting it intermittently.
Root cause
The test
io.ktor.client.tests.HttpTimeoutTest.testGetRequestTimeoutWithSeparateReceivePerRequestAttributesintermittently fails on linuxX64 with the Curl engine.Error: The test expects a successful response after a timeout is reset per-request, but both retry attempts fail with
HttpRequestTimeoutExceptionfor the Curl engine. The CIO engine passes on the second attempt. This suggests the Curl engine on Linux native does not properly honor per-request timeout attribute overrides when receiving a streaming response.Reproduction
Fails intermittently on TeamCity linuxX64 builds. Example builds:
Impact
This failure is present on the
release/3.xbase branch (various HttpTimeoutTest variants) and affects PRs targeting it intermittently.