mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-28 07:36:38 +08:00
7efb49bdab
When UpdateService encounters bind address conflicts (port already in use), the handler now automatically deletes existing forward services and retries the AddService operation. This resolves issues where a forward's own stale listener prevents the update. - Add isBindAddressInUseError() to detect port bind conflicts - Add rebindForwardServiceOnSelfOccupiedPort() for automatic cleanup and retry - Add HasOtherForwardOnNodePort() repository method to verify port ownership - Add unit tests for bind conflict detection
12 lines
728 B
Markdown
12 lines
728 B
Markdown
# 004 Forward Explicit Bind Self-Occupy Release
|
|
|
|
## Checklist
|
|
|
|
- [x] Confirm current forward edit/save failure path and lock strategy: explicit bind always stays explicit.
|
|
- [x] Add repository query to detect whether a node+port is occupied by other forwards (excluding current forward).
|
|
- [x] Enhance forward service sync to treat address-in-use as a recoverable case when only self occupies the port.
|
|
- [x] On self-occupy conflict, proactively delete current forward services on target node and retry AddService.
|
|
- [x] Keep hard failure when the same node+port is occupied by other forwards.
|
|
- [x] Add focused unit tests for new error classification helpers.
|
|
- [x] Run focused backend tests for touched handler/repo packages.
|