Fix connection bugs resulting from short timeout on NodeManager.pingNode
#473
Labels
bug
Something isn't working
r&d:polykey:core activity 4
End to End Networking behind Consumer NAT Devices
Specification
During PR #445 encountered some connection bugs. The bugs started after updating the
NodeManager.pingNode
method to usetimedCancellable
. The running theory is that cancelling the ping when it is in the process of establishing the connection leads to an unhanded condition within theProxy
code resulting in an error.At the time to complete the PR we disabled any failing tests and changed the timeout for
pingNode
to 20000ms from 2000ms. The longer delay seemed to fix the symptom. To re-create the bug I think you only need to set thepingNode
timeout to something short such as 2000ms and that should cause the error again.This bug needs to be fixed. If possible a test created to test the specific problem though given the nature of race conditions it might not be possible to create a reliable test.
Additional context
Tasks
The text was updated successfully, but these errors were encountered: