Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: do not reset the hearbeat timer on each packet
This behavior was added in [1]. However, there are two problems: - a new timer is allocated every time a packet is received, which is wasteful - the next heartbeat is not actually delayed, since it's the timeout timer which gets reset, and not the interval timer Note: delaying the next heartbeat would be a breaking change. [1]: be7b4e7
- Loading branch information