• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

node-opcua / node-opcua / 28734850276
92%

Build:
DEFAULT BRANCH: master
Ran 05 Jul 2026 04:29PM UTC
Jobs 1
Files 1255
Run time 2min
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

05 Jul 2026 08:30AM UTC coverage: 92.132% (-0.001%) from 92.133%
28734850276

push

github

erossignon
fix(client): prevent reconnection deadlock after sleep/wake

_throwIfShouldNotContinue was called inside async callbacks within
Promise constructors (create_session_and_repeat_if_failed line 190,
attempt_subscription_transfer line 302). When the session becomes
unusable during reconnection (e.g. transport closes again after
laptop sleep/wake), the throw:
  - escapes the Promise (only sync throws are caught)
  - is swallowed by the secure channel's modified_callback try/catch
  - leaves the Promise dangling (never resolved/rejected)
  - the reconnection state machine stays stuck in 'reconnecting'
  - subsequent _repairConnection calls are blocked by the
    re-entrancy guard

Replace _throwIfShouldNotContinue with _shouldNotContinue + reject()
at both sites so the Promise properly rejects, allowing the
reconnection state machine to recover and retry.

Add test_reconnection_deadlock.ts proving the bug: the buggy pattern
causes the Promise to deadlock, the fixed pattern rejects cleanly.

19762 of 23043 branches covered (85.76%)

4 of 4 new or added lines in 1 file covered. (100.0%)

3 existing lines in 1 file now uncovered.

168568 of 182964 relevant lines covered (92.13%)

471556.05 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
86.73
-0.13% packages/node-opcua-client/source/private/client_session_impl.ts
Jobs
ID Job ID Ran Files Coverage
1 28734850276.1 05 Jul 2026 04:29PM UTC 1255
92.13
GitHub Action Run
Source Files on build 28734850276
  • Tree
  • List 1255
  • Changed 3
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28734850276
  • b15189a3 on github
  • Prev Build on master (#28500279304)
  • Next Build on master (#28798221203)
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