Skip to content

Invalid file descriptor 0xff for FileWatching #34

Description

@mzaffalon

I am trying to connect to a machine running Linux from Windows

import LibSSH as ssh
session = ssh.Session("192.168.80.9"; user="root", log_verbosity=ssh.SSH_LOG_FUNCTIONS)

crashes with

Unhandled Task ERROR: ArgumentError: Passed file descriptor fd=Base.Libc.WindowsRawSocket(0xffffffffffffffff) is not a valid file descriptor

On my system the first two calls to ret = lib.ssh_connect(session_ptr) return SSH_AGAIN. Only after the first call session.fd is a positive number. Does _wait_loop(session) start too early?

I use LibSSH v0.7.1 and Julia v1.12.5.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions