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

emlove / jsonrpc-websocket / 38798313195
100%

Build:
DEFAULT BRANCH: main
Ran 15 Oct 2026 07:59PM UTC
Jobs 1
Files 2
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

15 Oct 2026 07:59PM UTC coverage: 100.0%. Remained the same
38798313195

push

github

web-flow
Detach the websocket client before closing it (#23)

close() cleared self._client only after awaiting the client's close().
With an external session and a running reader, the close() called from
_ws_loop's finally block does the close handshake, and once that
finished it set self._client to None whatever it held by then, so a
ws_connect() made in the meantime lost its new client: connected went
False and the new socket stayed open.

Detach the client, and an internal session, in close() before awaiting
anything, and bind _ws_loop to the client it was started for. The
reader calls close() only while its client is still the current one,
otherwise it just finishes closing its own client and leaves a
replacement connection and its session alone. This also keeps the
reader from iterating None when close() finishes before it has
started, and a reader cancelled while closing no longer leaves
connected stuck at True, which made ws_connect() refuse to reconnect.

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

119 of 119 relevant lines covered (100.0%)

4.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38798313195.1 15 Oct 2026 08:00PM UTC 2
100.0
Source Files on build 38798313195
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f59f380f on github
  • Prev Build on 3.3.0 (#37343584947)
  • Next Build on main (#38816647508)
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