PPCM
PPCM

Reputation: 167

Check if the connection is up

As a client, I wanted to know if a connection to the peer is still alive. BusinessNetworkConnection as a function to connect and to disconnect, but no event system which can say "The connection was lost"

The only way, I saw, is to use BusinessNetworkConnection.ping(), but call this function before each others is a little bit inelegant

Is there a way to have this information?

Upvotes: 0

Views: 200

Answers (1)

david_k
david_k

Reputation: 5868

see this issue https://github.com/hyperledger/composer/issues/3013 for more details about connection reliability that has gone into Composer 0.19. It also provides more detail about the current thought process. Hyperledger Fabric is a distributed ledger and as such just because one peer in the network is not contactable doesn't mean that transactions can't be submitted and committed to the blockchain.

Upvotes: 1

Related Questions