How should my libssh2-based client handle gratuitous keepalives from the ssh server?

Vladimir Giszpenc vgiszpenc at
Sat Sep 24 00:58:05 CEST 2022

Hi //Peter et al,

In response to

>> Is there a recommended way to handle this issue?

>No. I don't think libssh2 supports dealing with packet when idle at all.

>The real solution is to add a generic protocol handler function, which
>will need a fair bit of work, but I think not a lot of rework.
Was a generic protocol handler function ever added?  Is it planned for some future release?


Vladimir Giszpenc | Lead Software Engineer
Phone: 201-367-6510
Ext: 10923
Email: vgiszpenc at
Crestron Electronics, Inc.
6 Volvo Drive, Rockleigh, New Jersey, 07647
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image699561.jpg
Type: image/jpeg
Size: 16814 bytes
Desc: image699561.jpg
URL: <>

More information about the libssh2-devel mailing list