Skip to content

SSH KeepAlive blocking stdin? #183

Description

@DenuxPlays

Hey,

i have a weird issue.
We are currently working on a cross-platform ssh & sftp app and we are using dartssh2 for our SSH & SFTP connection.
We implement the terminal parsing ourself etc. and I have noticed a very weird issue.
When running a high throughput command like yes you then press ctrl + c the delay to the server is around 5 seconds.

I tried to debug the issue and the code hangs for around 5 seconds (almost exactly the input delay) here: https://github.com/TerminalStudio/dartssh2/blob/master/lib/src/ssh_keepalive.dart#L19

I am not sure if this is a bug in dartssh2 or at our end.

Does it even make sense that the code hangs there?
is keepalive not getting through because of yes blocking the streams?

I am just here to check and basically ensure that this is a bug at our end not in this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions