fix firewalling/fragmentation issue

This commit is contained in:
John Smith
2023-06-10 11:02:48 -04:00
parent 88466db03f
commit b6c39ef042
2 changed files with 18 additions and 1 deletions

View File

@@ -844,6 +844,10 @@ impl RPCProcessor {
// Record for node if this was not sent via a route
if safety_route.is_none() && remote_private_route.is_none() {
node_ref.stats_failed_to_send(send_ts, wants_answer);
// Also clear the last_connections for the entry so we make a new connection next time
node_ref.clear_last_connections();
return;
}
@@ -872,6 +876,10 @@ impl RPCProcessor {
// Record for node if this was not sent via a route
if safety_route.is_none() && remote_private_route.is_none() {
node_ref.stats_question_lost();
// Also clear the last_connections for the entry so we make a new connection next time
node_ref.clear_last_connections();
return;
}
// Get route spec store