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
Calling RoutingSender::send will try to re-initialize session, if it was closed. This is good idea in certain scenarios, but everything depends on the reason that session was closed.
Examples:
Other Node shutdown - re-initialization will fail anyway
Temporarily internet connection was lost - in this case we would like to continue sending packets after connection will start working again
Initialization with Node failed, because it was sending incorrect protocol messages - it's not clear if we want to talk with this Node (it can be either malicious or it works incorrectly)
What:
Consider what are possible cases of re-initialization scenarios
Plan the best strategy possible
Implement RoutingSender
Check if TcpSender has any similarities in terms of optimal strategy
The text was updated successfully, but these errors were encountered:
nieznanysprawiciel
changed the title
Implement the best possible lazy initialization strategy for RoutingSender
Implement optimal lazy initialization strategy for RoutingSenderJul 21, 2023
Why:
RoutingSender::send
will try to re-initialize session, if it was closed. This is good idea in certain scenarios, but everything depends on the reason that session was closed.Examples:
What:
RoutingSender
TcpSender
has any similarities in terms of optimal strategyThe text was updated successfully, but these errors were encountered: