mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#4005
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/2362
Author: @nekomario28
Created: 10/14/2026
Status: ❌ Closed
Base:
main← Head:bench-connect-configured-host📝 Commits (1)
490cd54tools: poll the server address the config binds, not loopback (#2330)📊 Changes
2 files changed (+50 additions, -2 deletions)
View changed files
📝
tools/strata_bench.py(+11 -2)➕
tools/test_bench_host.py(+39 -0)📄 Description
Closes #2330.
strata_bench.pystarts the server on the config'shostand then polls readiness at a hardcodedhttp://127.0.0.1:<port>(tools/strata_bench.py:967), so a host bound to a specific interface never answers the poll — the report saw the log confirm readiness at192.168.1.10while BENCH kept printing "still loading" for 11 minutes.The change is @Swallowtail23's patch from the report, with the mapping lifted into
server_baseso the test can reach it and nothing else altered: use the configured host, default to loopback when there is none, map the wildcard binds (0.0.0.0→127.0.0.1,::→::1) to something connectable, and bracket IPv6 literals. An explicit--urlstill takes precedence.Testing
python -m unittest tools.test_bench_host— five cases: a configured LAN host, an absent host, both wildcards, a bare and an already-bracketed IPv6 literal, and a hostname. Replacing the mapping with the old hardcoded127.0.0.1fails four of them, so they are guards rather than restatements.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.