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

bacnet-js / client / 22172468942
85%

Build:
DEFAULT BRANCH: master
Ran 19 Feb 2026 07:27AM UTC
Jobs 1
Files 44
Run time 1min
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

19 Feb 2026 07:24AM UTC coverage: 82.951% (-0.01%) from 82.965%
22172468942

push

github

web-flow
fix(segmentation): correctly reassemble segmented ComplexACK responses (#71)

## Summary
This PR fixes segmented response handling for BACnet `ComplexACK`
messages.

## Problem
Some devices return segmented `ComplexACK` responses (e.g. large
object/property payloads).
The client could enter an invalid APDU state during reassembly,
resulting in abort/error behavior and missing response payload.

## Root Cause
Segment flags/state were not handled consistently across segmented
frames and final reassembled APDU processing.

## Changes
- Correct segmented `ComplexACK` reassembly flow.
- Clear segmented state/flags after full APDU is reassembled.
- Ensure final payload is passed once through normal decode path after
reassembly.

## Impact
- Stabilizes reads from devices that require segmentation.
- Prevents invalid state transitions/abort loops in segmented exchanges.
- Improves compatibility with larger BACnet payloads.

## Validation
- Verified against real-device traffic with segmented `ComplexACK`.
- Confirmed reassembled response is decoded successfully.
- Confirmed no regression for non-segmented responses.

## Compatibility
Backward compatible.  
No API changes.

877 of 1362 branches covered (64.39%)

Branch coverage included in aggregate %.

0 of 1 new or added line in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

5166 of 5923 relevant lines covered (87.22%)

36.67 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
64.67
0.0% src/lib/client.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
98.44
-1.56% src/lib/request-manager.ts
Jobs
ID Job ID Ran Files Coverage
1 22172468942.1 19 Feb 2026 07:27AM UTC 44
82.95
GitHub Action Run
Source Files on build 22172468942
  • Tree
  • List 44
  • Changed 2
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22172468942
  • cb1fb54c on github
  • Prev Build on master (#22065663858)
  • Next Build on master (#22172650479)
  • Delete
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