Closed driftluo closed 4 years ago
It is very expensive to call the acquisition time every time a message is sent and received. At the same time, such an operation does not make any sense when the ping message exists, so I decided to remove them
Indeed, last_send_success, last_read_success exists just for timeout check is meaningless, keep_alive() already cover the functionality.
last_send_success
last_read_success
keep_alive()
https://github.com/nervosnetwork/tentacle/blob/15abe1ef29b0683548a3eaa3681027e4332b67f0/yamux/src/session.rs#L623-L634
It is very expensive to call the acquisition time every time a message is sent and received. At the same time, such an operation does not make any sense when the ping message exists, so I decided to remove them