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

lightningnetwork / lnd / 3877
54%
master: 65%

Build:
Build:
LAST BUILD BRANCH: bugfix/fix-peer-disconnect-log
DEFAULT BRANCH: master
Ran 08 May 2018 03:40AM UTC
Jobs 2
Files 150
Run time 3min
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
3877

push

travis-ci

cfromknecht
server: add peer connection callback scheduling

This commit adds a simple scheduling mechanism for
resolving potential deadlocks when dropping a stale
connection (via pubkey inspection).

Ideally, we'd like to wait to activate a new peer until
the previous one has exited entirely. However, the current
logic attempts to disconnect (and wait) until the peer
has been cleaned up fully, which can result in
deadlocks with other portions of the codebase, since
other blocking methods may also need acquire the mutex
before the peer can exit.

When existing connections are replaced, they now
schedule a callback that is executed inside the
peerTerminationWatcher. Since the peer now waits for
the clean exit of the prior peer, this callback is
now executed with a clean slate, adds the peer to
the server's maps, and initiates peer's Start() method.

23097 of 42945 relevant lines covered (53.78%)

31666.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3877.1 (RACE=false) 08 May 2018 03:44AM UTC 0
53.77
Travis Job 3877.1
3 3877.3 (RACE=false) 08 May 2018 03:40AM UTC 0
53.79
Travis Job 3877.3
Source Files on build 3877
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3877
  • 3ae018d1 on github
  • Next Build on peer-async-disconnect (#3881)
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