Re: Multiple channels and epoll(7)

2020-11-16 Thread Stef Bon
Hi, Goodmorning. How do you do? I know the design of SSH and the connection protocol described in RFC 4254, and I know that by design only the ssh session has a fd. I'm working on a FUSE network filesystem service which connects to SSH servers in the network automatically, using Avahi to detect t

Re: Multiple channels and epoll(7)

2020-11-16 Thread Peter Stuge
Hi Stef, Stef Bon wrote: > I am not that familiar with libssh2, but is there a fd associated with > every channel? No. RFC 4254 chapter 5 describes SSH channels. They are just multiplexed byte streams within one SSH connection, described by RFC 4254. > Or is there a mutex/cond which are doing t

Re: Multiple channels and epoll(7)

2020-11-16 Thread Stef Bon
Hi, I am not that familiar with libssh2, but is there a fd associated with every channel? Or is there a mutex/cond which are doing the signalling data is available? Only then you can do a per channel waiting/handling for io. Stef ___ libssh2-devel https

Re: Multiple channels and epoll(7)

2020-11-16 Thread Peter Stuge
Dear Jason, Jason Ni wrote: > I was trying to use async-ssh2, which is an async wrapper of libssh2, to > implement a remote port forward proxy. > However, I may encounter the same issue as talked in this thread 6 years > before. > Could any one help to confirm that is there any rework or fix of th

Re: Multiple channels and epoll(7)

2020-11-16 Thread John-Mark Gurney
Jason Ni wrote this message on Mon, Nov 16, 2020 at 10:23 +0800: > I was trying to use async-ssh2, which is an async wrapper of libssh2, to > implement a remote port forward proxy. > However, I may encounter the same issue as talked in this thread 6 years > before. > Could any one help to confirm t