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

enbility / ship-go / 36413409072
93%

Build:
DEFAULT BRANCH: dev
Ran 28 Sep 2026 11:07AM UTC
Jobs 1
Files 46
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

28 Sep 2026 11:04AM UTC coverage: 93.083% (+0.1%) from 92.986%
36413409072

push

github

web-flow
fix(ws): deliver queued SHIP messages before closing the connection (#120)

Callers queue a final SHIP message and close in the same breath:
abortProtocolHandshake sends its "protocol handshake error", the CMI
rejection sends its reply. The message never reached the peer. close()
marks the connection closed first, and the write pump drops anything it
has not written yet; a close with a reason also writes its close frame
directly, overtaking the queue. The conformance tool saw a 1006 (or
4001) close and no abort, failing TC_SHIP_PROT_003-006.

CloseDataConnection now flushes first: it stops accepting new SHIP
messages, asks the write pump to write everything already queued, and
waits for its acknowledgement, at most flushTimeout (2s), before writing
the close frame and closing. The pump is the only writer, so once it
acknowledges no message is held between the queue and the socket. The
flush is skipped when the connection is already closed or was never
started.

A real-socket regression test queues an abort and closes immediately,
with and without a close frame, and asserts the peer receives the abort
before the connection ends. Without the flush it fails on the first run.

34 of 36 new or added lines in 1 file covered. (94.44%)

2 existing lines in 1 file now uncovered.

6163 of 6621 relevant lines covered (93.08%)

11522.08 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
94.29
1.84% ws/websocket.go

Coverage Regressions

Lines Coverage ∆ File
2
81.11
0.0% cert/cert.go
Jobs
ID Job ID Ran Files Coverage
1 36413409072.1 28 Sep 2026 11:07AM UTC 46
93.08
GitHub Action Run
Source Files on build 36413409072
  • Tree
  • List 46
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36413409072
  • 874c9ebd on github
  • Prev Build on dev (#35613403500)
  • Next Build on dev (#36413688379)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc