Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Millisecond timeout precision not respected #1497

@Trzik

Description

@Trzik

Documentation of libssh2_session_set_timeout claims millisecond precision. This is never respected due to the fact that internally timestamps are obtained via time function that returns seconds. This results in 3 orders of magnitude difference.

Attached patch (for version 1.11.1) tries to address this issue. Feel free to use it or adapt it as you see fit.
timeout_ms_precision_1.11.1.patch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions