Page MenuHomePhabricator

Vishalearnz (Vishal)
User

Projects

User does not belong to any projects.

User Details

User Since
Thu, Jan 23, 6:24 AM (3 w, 4 d)

Recent Activity

Thu, Feb 13

Vishalearnz added a comment to T212: ServerAliveInterval & ClientAliveInterval not present in libssh version 0.9.0.

Thanks Jakuje , Although I am able to use the above two api's to get the status of the connection.
But even after that there is a hard reset which causes the session to be terminated after 30 mins , even though keep alive is being sent.

Thu, Feb 13, 10:34 AM · Restricted Project

Thu, Jan 30

Vishalearnz added a comment to T212: ServerAliveInterval & ClientAliveInterval not present in libssh version 0.9.0.

In my scenario I need to handle the response i.e if for a keepalive request I donot get a correct response . I need to terminate the session .
But going by what you wrote above " no explicit action should be needed from the calling program" , I am understanding that ssh_send_keepalive() internally calls the following sequence ssh_global_request()-> ssh_handle_packets_termination()->ssh_handle_packets() .
But I need to capture the response which ssh_send_keepalive() doesnot provide me any means to get it.
Also all the other api's like
ssh_global_request(), ssh_handle_packets_termination(), ssh_handle_packets() are not exposed to external world so I cant use it inside my code.

Thu, Jan 30, 7:45 AM · Restricted Project

Wed, Jan 29

Vishalearnz added a comment to T212: ServerAliveInterval & ClientAliveInterval not present in libssh version 0.9.0.

ssh_handle_packets() is not an exposed api . I am unable to use it , also this macro(SSH_MSG_REQUEST_FAILURE) I cant find in the codebase of libssh . So what should I use ?

Wed, Jan 29, 12:30 PM · Restricted Project
Vishalearnz added a comment to T212: ServerAliveInterval & ClientAliveInterval not present in libssh version 0.9.0.

I tried using ssh_send_keepalive() but it doesnot serve the purpose . Here I was monitoring the return value of the function (ssh_send_keepalive) .
I first started client and server . In my scenario server shall initiate the connection which it did and this keep alive function was set to send every 30 sec . for which the ssh_send_keepalive() was returning SSH_OK.
But when I killed the client . It was expected that the ssh_send_keepalive() should send back SSH_ERROR but instead it kept on sending back SSH_OK . This means this api is only sending the message but not monitoring the response.

Wed, Jan 29, 9:49 AM · Restricted Project

Tue, Jan 28

Vishalearnz added a comment to T212: ServerAliveInterval & ClientAliveInterval not present in libssh version 0.9.0.

Just one query .
If we are using ssh_send_ignore . Do we get response from the client for the same ?
If not then is there an api other than ssh_send_ignore which sends the message and gets back response from the client.
I need to get the response of the client (either they have received the message or not).

Tue, Jan 28, 8:25 AM · Restricted Project

Mon, Jan 27

Vishalearnz added a comment to T212: ServerAliveInterval & ClientAliveInterval not present in libssh version 0.9.0.

Thanks a lot @Jakuje .
I tried as per your recommendation and it works for me.

Mon, Jan 27, 11:04 AM · Restricted Project

Thu, Jan 23

Vishalearnz created T212: ServerAliveInterval & ClientAliveInterval not present in libssh version 0.9.0.
Thu, Jan 23, 7:16 AM · Restricted Project