fix(delmia,inbound): a connect-phase failure (unreachable host, connect timeout) fails over to the next URL/peer instead of OUTCOME_UNKNOWN (DLM-1, WP4 task 4.7)
This commit is contained in:
@@ -28,7 +28,7 @@ The spec for this component is the project `README.md` plus `docs/plans/2026-06-
|
||||
|
||||
| Kind | Raised when | Loop behaviour |
|
||||
|---|---|---|
|
||||
| `ConnectFailed` | `HttpRequestException` with `HttpRequestError.NameResolutionError`, or an inner `SocketException` with `ConnectionRefused` | Try the next URL |
|
||||
| `ConnectFailed` | Any failure while opening the TCP connection — refusal, name resolution, unreachable/powered-off host, or the connect timeout (`min(5 s, TimeoutSeconds / 2)`) firing — recognised by the `ConnectPhaseException` marker the client's `ConnectCallback` puts in the exception chain (DLM-1); also the legacy `NameResolutionError` / `ConnectionRefused` shapes | Try the next URL |
|
||||
| `StandbyRejected` | HTTP 503 whose `X-ScadaBridge-Standby` header is exactly `1` | Try the next URL |
|
||||
| `OutcomeUnknown` | Any other `HttpRequestException`, or a timeout (`OperationCanceledException` not caused by the caller's token) | Stop; return `NO` with `OUTCOME_UNKNOWN: the request may have been applied; verify before retrying.` |
|
||||
| `Connected` | Any HTTP response not matched above | Stop; the node's answer is final |
|
||||
|
||||
Reference in New Issue
Block a user