JuliaWeb / JuliaWeb/LibSSH.jl

Invalid file descriptor 0xff for FileWatching

Open
#34 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
12
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.