[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Server session idle timeout


Hello,


I'm writing custom server.

Everything is working, session, channel, client is able to connect, gets
shell...

I am trying to set connection idle timeout on ssh server for the
connecting client but I'm not successful so far.


I am doing so by setting session options:


-----

long sess_tmout = 5;

ret = ssh_options_set(session, SSH_OPTIONS_TIMEOUT, (void*)&sess_tmout);

-----


The function returns 0 - so it was successful but nothing happens after
5 seconds.

Am I missing something (register callback..)?

Am I doing it completely wrong?


I was trying to search the internet for the answer, but without success.


Thank you all,

Best regards,

Barbucha


Archive administrator: postmaster@lists.cynapses.org