Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous code did not ensure that there was a delay of at least `try` seconds after each sent request. Instead, whenever the condvar was signaled, which could be due to retransmitted responses or messages for unrelated transactions (there could even be spurious wakeups), the counter was increased and a retransmit sent. So instead of actually waiting for 15 seconds for a response (and sending 4 retransmits over that timespan), it could happen that all five messages were sent within a second without enough time to actually receive a response. Using an absolute timeout that we reuse as long as there was no timeout and the condvar was signaled for something unrelated, should ensure we wait at least the intended delay after each sent message. Closes #1154
- Loading branch information