www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: problems on closing channel

Re: problems on closing channel

From: Peter <325131514_at_qq.com>
Date: Fri, 13 Sep 2013 19:14:45 +0800

Thanks for your kindly help. This real help me.I will have a try. And my understand, actually two channels in the same session will never be used simultaneously. Is it right?
 Mutex sessionA
 handle channle1(such as open, read, exec...)
 unmutex
  
 Mutex sessionA
 handle channle2(such as open, read, exec...)
 unmutex




------------------ Original ------------------
From: "Peter Stuge";
Date: 2013年9月13日(星期五) 晚上6:34
To: "libssh2-devel";
Subject: Re: problems on closing channel



Peter wrote:
> thread1 open a channel and then run command(such as ping) as I
> mentioned above. And thread2 open another channel run command
> such as "killall ping" to terminate the command.

Besides the mutex, consider what happens when your program runs two
or more times using the same account on a remote server.

If you need reliable remote process management then you must
implement a service which does this for you, that runs on the remote
server. SSH does not solve that problem for you, you have to do that
yourself.


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

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-09-13

the libssh2 team