add path aligntment timeout to send and connect timeouts on outbound context to reduce the chance of timing race conditon

pull/1658/head
Jeff Becker 3 years ago
parent a8964a6d8a
commit c6660dd6c1
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -71,6 +71,10 @@ namespace llarp
}
currentConvoTag.Randomize();
lastShift = Now();
// add send and connect timeouts to the parent endpoints path alignment timeout
// this will make it so that there is less of a chance for timing races
sendTimeout += parent->PathAlignmentTimeout();
connectTimeout += parent->PathAlignmentTimeout();
}
OutboundContext::~OutboundContext() = default;

Loading…
Cancel
Save