[prev in list] [next in list] [prev in thread] [next in thread] 

List:       btcd-commits
Subject:    [btcsuite/btcd] d0cdd5: server: Fix persistent peers not being removed pro...
From:       Dario Nieuwenhuis <dirbaio () dirbaio ! net>
Date:       2015-12-28 0:51:52
Message-ID: 568087a827787_67543f931dccd2c070959 () hookshot-fe6-cp1-prd ! iad ! github ! net ! mail
[Download RAW message or body]


  Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: d0cdd53720276ee3499ff56ab1ce7d22601d8d9a
      https://github.com/btcsuite/btcd/commit/d0cdd53720276ee3499ff56ab1ce7d22601d8d9a
  Author: Dario Nieuwenhuis <dirbaio@dirbaio.net>
  Date:   2015-12-28 (Mon, 28 Dec 2015)

  Changed paths:
    M server.go

  Log Message:
  -----------
  server: Fix persistent peers not being removed properly

When a persistent peer is disconnected (for example due to a
network timeout), a connection retry is issued. The logic for
doing so failed to remove the peer from the peerState, causing
dead peer connections to fill the peerState. Since connections
in the peerState are counted towards the maxPeers limit, this
would cause btcd to eventually stop retrying connection.

This commit fixes the issue by properly removing the peer from
the peerState.




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic