Subject: Re: libssh2_channel_close/libssh2_channel_free hangs if you execute long-running command

Re: libssh2_channel_close/libssh2_channel_free hangs if you execute long-running command

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Fri, 14 Oct 2011 08:40:07 +0200

fre 2011-10-14 klockan 03:49 +0200 skrev Peter Stuge:
> Pavel Strashkin wrote:
> > Here we go. I read first block of data, then command "sleeps" for a
> > [interval] seconds, i do libssh2_channel_close or
> > libssh2_channel_free, and it hangs for [interval] seconds. I can't
> > close channel or session graceful.
>
> Of course not, when the remote program still has the channel open?

Can it after a CLOSE? (not EOF)

Regards
Henrik

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-10-14