You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5e6dde0
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ocpp): a port Core cannot open fails Start and shows on each charger (#1843)
* fix(ocpp): a port Core cannot open fails Start and shows on each charger
ws.Server.Start opens its own socket in a goroutine and drops a listen
error into a logger Core does not read, so a taken port left the OCPP
server not listening while Start reported success. Start now opens and
closes each enabled port first, loads the TLS pair that ServeTLS would
load later, and on any failure records the error on every charger the
site names.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ocpp): a taken 2.0.1 port leaves the 1.6 listener running
Review note: failing all of Start for a taken 2.0.1 port also stopped
the 1.6 listener that came up before, leaving 1.6 chargers unsteered.
Start now fails only for the 1.6 port. A taken 2.0.1 port is logged,
that listener is skipped, and the reason goes on each named charger,
which its first 1.6 message clears. The Start comment no longer says it
returns once the listener is up, and startOCPP retries when a 2.0.1
listener it asked for did not start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
If Core cannot open its OCPP port, because another program holds it or the TLS certificate and key do not load, the OCPP server now fails to start with that error instead of saying it started. If only the OCPP 2.0.1 port is taken, the 1.6 server still starts for the chargers that use it. The error appears in the log and in the help report, and each charger the site names shows it as its last error until it connects, so a charger that never connects has a reason beside it.
0 commit comments