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

gdassori / micelio / 22010902742
85%

Build:
DEFAULT BRANCH: master
Ran 14 Feb 2026 04:10AM UTC
Jobs 1
Files 19
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

14 Feb 2026 04:09AM UTC coverage: 77.075% (+0.8%) from 76.24%
22010902742

push

github

gdassori
Connection health: read deadlines and keepalive

Add idle timeout, keepalive, and write deadline mechanisms to detect
and evict dead or unresponsive peers.

- recvLoop sets a 60s read deadline before each ReadFrame; on timeout
  the peer is disconnected with a WARN log
- sendLoop sends a lightweight keepalive frame (MsgTypeKeepalive=5)
  every 20s when no real traffic flows, resetting on each real send
- Write deadline (10s) on every frame write detects stuck connections
- Handshake timeout (10s) applies both read and write deadlines to
  the PeerHello exchange
- Manager.SetPeerTimeouts() allows test overrides with mutex protection
- noiseConn.SetReadDeadline/SetWriteDeadline delegate to underlying conn
- setupTestPair helper eliminates test duplication
- sendWithDeadline helper reduces sendLoop cognitive complexity
- All peer log statements use formatNodeIDShort consistently

Closes #16

1634 of 2120 relevant lines covered (77.08%)

261.13 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
22
72.37
1.14% noise.go
30
89.58
2.12% manager.go
57
75.09
1.18% peer.go
Jobs
ID Job ID Ran Files Coverage
1 22010902742.1 14 Feb 2026 04:10AM UTC 19
77.08
GitHub Action Run
Source Files on build 22010902742
  • Tree
  • List 19
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22010902742
  • bb989640 on github
  • Prev Build on master (#21977445322)
  • Next Build on master (#22012456851)
  • 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