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

lightningnetwork / lnd / 783
62%

Build:
DEFAULT BRANCH: master
Ran 24 Apr 2017 03:34AM UTC
Jobs 1
Files 64
Run time 3s
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
783

push

travis-ci

Roasbeef
server+peer: re-write persistent connection handling

The prior methods we employed to handle persistent connections could
result in the following situation: both peers come up, and
_concurrently_ establish connection to each other. With the prior
logic, at this point, both connections would be terminated as each peer
would go to kill the connection of the other peer. In order to resolve
this issue in this commit, we’ve re-written the way we handle
persistent connections.

The eliminate the issue described above, in the case of concurrent peer
connection, we now use a deterministic method to decide _which_
connection should be closed. The following rule governs which
connection should be closed: the connection of the peer with the
“smaller” public key should be closed. With this rule we now avoid the
issue described above.

Additionally, each peer now gains a peerTerminationWatcher which waits
until a peer has been disconnected, and then cleans up all resources
allocated to the peer, notifies relevant sub-systems of its demise, and
finally handles re-connecting to the peer if it's persistent. This
replaces the goroutine that was spawned in the old version of
peer.Disconnect().

7897 of 10681 relevant lines covered (73.94%)

61324.99 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
112
100.0
lnwallet/wallet.go
Jobs
ID Job ID Ran Files Coverage
1 783.1 24 Apr 2017 03:34AM UTC 0
73.94
Travis Job 783.1
Source Files on build 783
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #783
  • 4cb76071 on github
  • Prev Build on master (#782)
  • Next Build on master (#784)
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