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

RE: Quick question


Yes debugging is enabled and this is the part of the log after I close the VNC client. It seems like it detects that the client has closed the connection and the channel is closed properly.
         

Kind regards,Lars van Ruiten
> From: asn@xxxxxxxxxxxxxx
> To: libssh@xxxxxxxxxx
> Subject: Re: Quick question
> Date: Thu, 8 Oct 2015 18:43:53 +0200
> 
> On Thursday 08 October 2015 14:06:34 lars van ruiten wrote:
> > Allright after studying the RFC's again I believe that this is the right way
> > to do it: 1. Start SSH session2. Request listening on remote port3. While
> > Forever        1. Wait untill incoming channel and load in an ssh_channel  
> >      2. while connection not closed                  1. Read reverse
> > channel and write to Local Socket                  2. Read Local socket and
> > write to reverse channel        3. Close Channel That is exactly what my
> > while loop does. After I have closed the channel it starts waiting for a
> > new one. When a connection arrives my code continues to the loop where it
> > starts forwarding the data between the channel and the socket, but there
> > there never seems to be any data on the channel. This has kept me occupied
> > for over a day now, and it's really weird that everything works fine on the
> > first connection but not on the second. If I am missing a step in the list
> > above please tell me. If there is a mistake in my code I will probably be
> > able to figure it out myself. Kind regards, Lars van Ruiten
> 
> Did you enable debug on the server side to see if the channel is really 
> closed?
> 
> 
 		 	   		  

Follow-Ups:
RE: Quick questionlars van ruiten <larsvanruiten@xxxxxxxxxxx>
References:
Quick questionlars van ruiten <larsvanruiten@xxxxxxxxxxx>
Re: Quick questionAndreas Schneider <asn@xxxxxxxxxxxxxx>
RE: Quick questionlars van ruiten <larsvanruiten@xxxxxxxxxxx>
Re: Quick questionAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org