ipfs-cluster/ipfsconn/ipfshttp
Hector Sanjuan a656e45375 cluster: safeguard consensus not set when calling ID
SwarmConnect on the ipfs connector calls rpc Peers() which
requests IDs for every peer member. If that peer member
is booting, it might get the request after RPC is setup
but before consensus is initialized. In which case
a panic happens. Probability that this happens is small, but still.

Also increase the connect swarms delay to 30 seconds, which
should be a bit longer than the default wait_for_leader timeout,
otherwise we might connect swarms while there's not even a leader.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-11-15 16:38:21 +01:00
..
config_test.go Issue #162: Improve Config.ToJSON() tests 2017-10-20 10:42:41 +02:00
config.go cluster: safeguard consensus not set when calling ID 2017-11-15 16:38:21 +01:00
ipfshttp_test.go Fix #224: Better handling of progress updates when proxy-adding file 2017-11-13 14:09:20 +01:00
ipfshttp.go Fix #224: Better handling of progress updates when proxy-adding file 2017-11-13 14:09:20 +01:00