Subject: Re: block,non-block on same connection

Re: block,non-block on same connection

From: Peter Stuge <peter_at_stuge.se>
Date: Fri, 1 Jan 2010 20:05:39 +0100

salsa lover wrote:
> Is it possible to create two sessions on the same connection one
> blocking and another non-blocking ?

No. If you need to process input from more than one SSH channel or
file descriptor then you must use non-blocking I/O on everything.

Compare my direct_tcpip.c example with e.g. an SFTP or SCP example.

I consider this to be a fairly big problem in libssh2 that should be
fixed, but I think the API needs to change and I think we should have
at least one more release before that, quite possibly several.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-01-01