-
Notifications
You must be signed in to change notification settings - Fork 255
Keep-alive timer was not properly calculated + LinkContext lifetime issue #407
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #407 +/- ##
===========================================
+ Coverage 51.29% 51.40% +0.11%
===========================================
Files 423 423
Lines 13439 13444 +5
===========================================
+ Hits 6893 6911 +18
+ Misses 6546 6533 -13
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
|
Since I had to play in |
9130b38 to
2c55c66
Compare
I also added a protection against another possible dangling pointer issue with `MContext`.
|
As noted by Nicholas Lee, even with the original fix, the keep-alive timers were internally expiring early, just to restart a very short timer afterwards. This was caused by how we used to drive the keep-alive timer. It was not restarted on every link activity, we were just waiting for the old one to expire and then we were re-calculating a new timer based on the recorded last link activity. I made the change to simply restart the timer on every link activity, I think it's cleaner. As for the |
Fix it and added a unit test.
Fix #392.