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

lightningnetwork / lnd / 3820
67%

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

pending completion
3820

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.

22600 of 42379 relevant lines covered (53.33%)

32417.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3820.1 (RACE=false) 03 May 2018 11:18PM UTC 0
53.32
Travis Job 3820.1
3 3820.3 (RACE=false) 03 May 2018 11:32PM UTC 0
53.37
Travis Job 3820.3
Source Files on build 3820
  • List 0
  • Changed 48
  • Source Changed 2
  • Coverage Changed 48
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #3820
  • 5f059e74 on github
  • Prev Build on master (#3817)
  • Next Build on master (#3834)
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

© 2025 Coveralls, Inc