fix: Support arbitrary socket names in URL routing #29
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_router!29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_arbitrary_sockets"
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?
Problem
hero_router only recognizes fixed webnames: rpc, ui, admin, rest, api. Anything else maps to
web_{name}.sock. This breaks services with custom socket names likeexplorer_rpc.sock:Fix
In the default match arm, check if
{name}.sockexists on disk before falling back toweb_{name}.sock:Test plan
Closes #28
Before: /{service}/{name}/* where name is not rpc/ui/admin/rest/api mapped to web_{name}.sock. Custom sockets like explorer_rpc.sock were unreachable. Now: check if {name}.sock exists directly on disk first. Only fall back to web_{name}.sock if the direct name doesn't exist. Closes #28I have tested the flow on the Hero Compute, and it is working as well