• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
You are now the owner of this repo.

evcc-io / ocpp-go
83%

Build:
Build:
LAST BUILD BRANCH: fix/client-dispatcher-deadlock
DEFAULT BRANCH: master
Repo Added 20 Jan 2025 10:10AM UTC
Token B2tVC5s6Pjn5PxHs7SZRkWZVWLLUjdmAH regen
Build 15 Last
Files 54
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix/client-dispatcher-deadlock
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • feat/ocpp-2.1-support
  • fix/client-dispatcher-deadlock
  • fix/ocpp201-schema-conformance
  • fix/sampledValueMin
  • master

08 Jun 2026 07:36AM UTC coverage: 82.919% (+0.01%) from 82.907%
27122869506

Pull #6

github

andig
fix: prevent client dispatcher deadlock on SendRequest during stop

DefaultClientDispatcher.SendRequest did a blocking send on the requestChannel
notification channel while the caller (chargePoint.SendRequestAsync via the
callback queue) holds the callbacks mutex. Once the message pump has stopped
draining the channel, that send blocks forever, so the mutex is never released
and the concurrent clearCallbacks on teardown deadlocks. The send could also
panic on a closed channel after Stop.

The notification channel is only a wake-up doorbell; the request enqueued in
requestQueue is the source of truth and the pump re-checks the queue on every
wake. Make the doorbell send non-blocking and add a stopped signal so
SendRequest bails out once the dispatcher is stopping instead of blocking or
sending on a closed channel.

Adds a regression test that hangs without the fix.
Pull Request #6: Fix client dispatcher deadlock on SendRequest during stop

16 of 18 new or added lines in 1 file covered. (88.89%)

3738 of 4508 relevant lines covered (82.92%)

18.03 hits per line

Relevant lines Covered
Build:
Build:
4508 RELEVANT LINES 3738 COVERED LINES
18.03 HITS PER LINE
Source Files on master
  • Tree
  • List 54
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
27122869506 fix/client-dispatcher-deadlock fix: prevent client dispatcher deadlock on SendRequest during stop DefaultClientDispatcher.SendRequest did a blocking send on the requestChannel notification channel while the caller (chargePoint.SendRequestAsync via the callback queue) holds the... Pull #6 08 Jun 2026 07:38AM UTC andig github
82.92
24552885776 fix/ocpp201-schema-conformance Apply suggestion from @andig push 17 Apr 2026 07:17AM UTC web-flow github
86.02
24552871838 fix/ocpp201-schema-conformance Apply suggestion from @andig push 17 Apr 2026 07:17AM UTC web-flow github
86.02
24513759267 fix/ocpp201-schema-conformance fix: OCPP 2.0.1 schema conformance fixes CRITICAL fixes: - CompositeSchedule: Redesign struct to match schema (evseId, duration, scheduleStart, chargingRateUnit, chargingSchedulePeriod) - ChargingSchedulePeriod: Add missing phaseToUse field (1-... push 16 Apr 2026 01:47PM UTC andig github
85.95
24502092764 feat/ocpp-2.1-support feat(ocpp2.1): Add Phase C - transactions, meter, remotecontrol packages Implements OCPP 2.1 functional blocks with full JSON schema conformance: transactions package: - TransactionEvent (CS -> CSMS) - GetTransactionStatus (CSMS -> CS) meter pa... push 16 Apr 2026 09:15AM UTC andig github
82.91
24501444495 feat/ocpp-2.1-support Apply suggestion from @andig push 16 Apr 2026 09:00AM UTC web-flow github
82.91
24501436574 feat/ocpp-2.1-support Apply suggestion from @andig push 16 Apr 2026 09:00AM UTC web-flow github
82.82
24501356397 feat/ocpp-2.1-support feat: Add OCPP 2.1 support (Phase B - Core foundation) Initial implementation of OCPP 2.1 protocol support including: **Types package (ocpp2.1/types/):** - CustomDataType for vendor extensions (new in 2.1) - Extended AuthorizationStatus, IdToken... push 16 Apr 2026 08:58AM UTC andig github
82.82
20180340446 master Fix SonnenHome Charger2 (#5) push 12 Dec 2025 09:28PM UTC web-flow github
82.91
20145659675 fix/sampledValueMin Minor change to fix the issue of error loop if stopTransaction sends invalid ocpp package (SonnenHome Charger2) evcc issue #25708 Pull #5 12 Dec 2025 09:28PM UTC ElZetto github
82.77
See All Builds (14)

Badge your Repo: ocpp-go

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc