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

Archive Index This month's Index

Subject: Re: How to structure code for multiple sessions with async API

Re: How to structure code for multiple sessions with async API

From: Salvador Fandiño <sfandino_at_gmail.com>
Date: Fri, 30 Oct 2015 09:06:13 +0100

On 10/28/2015 08:10 PM, Sanchay Harneja wrote:
> Just wanted to clarify - is it okay to call libssh2_keepalive_send()
> after the channel is closed?

keep-alives are not related to channels, they are a session thing. So,
as long as the connection is established, you can send them.

Calling libssh2_keepalive_send() is probably safe as long as the session
object remains allocated.

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

the libssh2 team