Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(connector-corda): contract deployment SSH reconnect race condition
When deploying multiple contracts on multiple nodes, there are multiple SSH connections being established. When this all happens on the same host (because you are running the all-in-one image for example) then the closing and opening of the same SSH port is not instant between disconnect and connect operations of the SSH client and connectivity problems come up. Due to lack of time I quickly fixed this by adding a 5 second wait between the disconnect and connect operations. Retries would be a much better solution long term especially since race conditions can never truly be fixed with hardcoded wait times that will sooner or later become too short or too long depending on the exact nature of the problem. [skip ci] Signed-off-by: Peter Somogyvari <[email protected]>
- Loading branch information