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

lightningnetwork / lnd / 3820 / 1
65%
master: 65%

Build:
DEFAULT BRANCH: master
Ran 03 May 2018 11:18PM UTC
Files 146
Run time 8s
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

03 May 2018 10:45PM UTC coverage: 53.319% (-0.1%) from 53.425%
RACE=false

push

travis-ci

Roasbeef
peer: ensure msgConsumer sets the shutdown variable on exit

In this commit, we fix a bug that could at times cause a deadlock when a
peer is attempting to disconnect. The issue was that when a peer goes to
disconnect, it needs to stop any active msgStream instances. The Stop()
method of the msgStream would block until an atomic variable was set to
indicate that the stream had fully exited. However, in the case that we
disconnected lower in the msgConsumer loop, we would never set the
streamShutdown variable, meaning that msgStream.Stop() would never
unblock.

The fix for this is simple: set the streamShutdown variable within the
quit case of the second select statement in the msgConsumer goroutine.

22596 of 42379 relevant lines covered (53.32%)

16266.28 hits per line

Source Files on job 3820.1 (RACE=false)
  • Tree
  • List 0
  • Changed 44
  • Source Changed 2
  • Coverage Changed 44
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3098
  • Travis Job 3820.1
  • 5f059e74 on github
  • Prev Job for RACE=false on master (#3817.3)
  • Next Job for RACE=false on master (#3834.1)
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