mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1563] [CLOSED] fix(serve): release requests after engine READY timeout #3535
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3535
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1563
Author: @hulkbig
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:fix/startup-timeout-pipe-cleanup-1527-20261008📝 Commits (1)
5093130fix(server): bound cleanup after engine startup timeout📊 Changes
3 files changed (+411 additions, -55 deletions)
View changed files
📝
serve/server.py(+95 -55)📝
serve/test_lifecycle.py(+1 -0)➕
serve/test_startup_timeout.py(+315 -0)📄 Description
Fixes #1527
Summary
The READY timeout kills the shell wrapper in the issue's reproducer, but its
sleepchild can keep stdout open. The reader thread remains blocked inreadline(), and the request then blocks instdout.close()waiting for that reader's lock. This prevents the existing retry/error path from returning a response.What changed
EngineDiedfor startup failure so HTTP returns 503 with the actual timeout reason rather than 400 with a missingslot_cverror.The existing retry count and backoff are unchanged.
Validation
On Linux CPU, using the issue's exact bash/
sleep 3600stub andSTRATA_ENGINE_READY_S=8:Focused tests:
55 tests passed. Compile and diff whitespace checks also passed.
Full discovery:
609 tests ran, 11 skipped, with one error in
test_server.AmdTelemetry.test_readings: this environment returnsNonefrompsutil.disk_io_counters(), which unchangedserve/telemetry.pydereferences. The same error reproduced on untouched basefb58e0d.As a supplemental environment-adjusted check, full discovery was repeated with an in-process shim that preserves real disk counters when available and supplies zero read/write counters only when they are
None. The unchanged rerun passed all 609 tests with 11 skips. Its first run had a sampler-thread-count timing failure in unchangedtest_responses.NoLeakedSampler.test_server_close_ends_the_sampler. No repository source or test edits were made for the shim. The raw full suite is therefore not a clean pass in this environment.Limits
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.