You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #299 , current hivemind.P2P will connect to a running daemon over several retries and wait a fixed 0.4 * 2 ** num_retries seconds between retries.
This is suboptimal, as we will likely loose loose time sleeping after p2pd has already been initialized.
A better strategy is to modify p2pd so that it notifies the master process of successful initialization and simply await for that notification (or timeout).
The text was updated successfully, but these errors were encountered:
This PR resolves#300 and speeds up the creation of P2P clients by reading the daemon's stdout instead of pinging it repeatedly.
Co-authored-by: Denis Mazur <[email protected]>
Co-authored-by: Alexander Borzunov <[email protected]>
As discussed in #299 , current hivemind.P2P will connect to a running daemon over several retries and wait a fixed
0.4 * 2 ** num_retries
seconds between retries.This is suboptimal, as we will likely loose loose time sleeping after p2pd has already been initialized.
A better strategy is to modify p2pd so that it notifies the master process of successful initialization and simply await for that notification (or timeout).
The text was updated successfully, but these errors were encountered: