Untested `ssh_set_counters()` and logic behind it
The libssh has a built-in support for counters that provide statistics about data coming through session at different levels (raw, socket). It is nicely described in the documentation: https://api.libssh.org/master/group__libssh__session.html#ga84d4ac53ac8582b70da9b63739df61ad Though, this code does not have any test coverage. It would be helpful to have some to make sure it keeps working
issue