{"action":"created","issue":{"url":"https://api.github.com/repos/btcsuite/btcd/issues/697","repository_url":"https://api.github.com/repos/btcsuite/btcd","labels_url":"https://api.github.com/repos/btcsuite/btcd/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/btcsuite/btcd/issues/697/comments","events_url":"https://api.github.com/repos/btcsuite/btcd/issues/697/events","html_url":"https://github.com/btcsuite/btcd/issues/697","id":155747232,"number":697,"title":"Two btcd instanced on same machine keep losing connection","user":{"login":"stevenroose","id":853468,"avatar_url":"https://avatars.githubusercontent.com/u/853468?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenroose","html_url":"https://github.com/stevenroose","followers_url":"https://api.github.com/users/stevenroose/followers","following_url":"https://api.github.com/users/stevenroose/following{/other_user}","gists_url":"https://api.github.com/users/stevenroose/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenroose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenroose/subscriptions","organizations_url":"https://api.github.com/users/stevenroose/orgs","repos_url":"https://api.github.com/users/stevenroose/repos","events_url":"https://api.github.com/users/stevenroose/events{/privacy}","received_events_url":"https://api.github.com/users/stevenroose/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-19T14:14:35Z","updated_at":"2016-05-21T15:20:08Z","closed_at":null,"body":"I setup one daemon that was synced up and listening to 8335 and another one with `connect=127.0.0.1:8335` that started from scratch.\r\n\r\nHowever, they kept losing connection:\r\n```\r\n00:02:56 2016-05-19 [INF] BMGR: Syncing to block height 412025 from peer localhost:8335\r\n00:02:56 2016-05-19 [INF] BMGR: Downloading headers for blocks 1 to 11111 from peer localhost:8335\r\n00:04:41 2016-05-19 [INF] BMGR: Lost peer localhost:8335 (outbound)\r\n```\r\nI found this in the debug logs and the probable cause:\r\n```\r\n00:56:30 2016-05-19 [DBG] PEER: Peer 127.0.0.1:8335 (outbound) appears to be stalled or misbehaving, headers timeout -- disconnecting\r\n```\r\nThat message occurred on the new (connecting) instance.\r\n\r\nI talked about it with @davecgh and he could not immediately identify the issue. The receiving instance does not mention anything special about the other instance, just that it received a `getheaders` message.\r\n\r\nHere are some more possibly relevant logs:\r\nhttps://gist.github.com/stevenroose/5b69ed22d8fd35d8c04c564c0f3733b7\r\nhttps://gist.github.com/stevenroose/a06184820c7b44c96d9728072ae2886a\r\nhttps://gist.github.com/stevenroose/7e6265c06b505b4e51733b6b15eae883"},"comment":{"url":"https://api.github.com/repos/btcsuite/btcd/issues/comments/220783399","html_url":"https://github.com/btcsuite/btcd/issues/697#issuecomment-220783399","issue_url":"https://api.github.com/repos/btcsuite/btcd/issues/697","id":220783399,"user":{"login":"stevenroose","id":853468,"avatar_url":"https://avatars.githubusercontent.com/u/853468?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenroose","html_url":"https://github.com/stevenroose","followers_url":"https://api.github.com/users/stevenroose/followers","following_url":"https://api.github.com/users/stevenroose/following{/other_user}","gists_url":"https://api.github.com/users/stevenroose/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenroose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenroose/subscriptions","organizations_url":"https://api.github.com/users/stevenroose/orgs","repos_url":"https://api.github.com/users/stevenroose/repos","events_url":"https://api.github.com/users/stevenroose/events{/privacy}","received_events_url":"https://api.github.com/users/stevenroose/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T15:20:08Z","updated_at":"2016-05-21T15:20:08Z","body":"Now I got this:\r\n```\r\n17:09:36 2016-05-21 [WRN] PEER: Misbehaving peer 127.0.0.1:59022 (inbound): getdata -- ban score increased to 66\r\n```\r\nright after the syncing client did this:\r\n```\r\n17:09:34 2016-05-21 [INF] BMGR: Received 33556 block headers: Fetching blocks\r\n```"}}
{"actor":{"display_login":"stevenroose"}}