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
It can happen that lightPush.send fail due to not having enough quality peers or peers in general.
Proposed Solutions
Enable following API:
node.lightPush.send(encoder,message,{autoRetry: true});// retries right after peers are available with default timeout of 500ms node.lightPush.send(encoder,message,{autoRetry: {timeout: 1000});// changes timeout to 1s
Default values:
autoRetry - false;
if autoRetry is true -> { timeout: 500, retries: 3 };
in other cases should be merged with provided values;
This feature should be disabled by default as in the worst case scenario it can take some time potentially blocking consumer's app without clear reason.
timeout is to cap execution by await time retries is to cap execution by amount of tries to .send message to peers
This is a feature request
Problem
It can happen that
lightPush.send
fail due to not having enough quality peers or peers in general.Proposed Solutions
Enable following API:
Default values:
autoRetry
-false
;autoRetry
istrue
->{ timeout: 500, retries: 3 }
;This feature should be disabled by default as in the worst case scenario it can take some time potentially blocking consumer's app without clear reason.
timeout
is to cap execution byawait
timeretries
is to cap execution by amount of tries to.send
message to peersNotes
Original thread - #2003 (comment)
The text was updated successfully, but these errors were encountered: