Re: Working on keepalive messages while waiting for local connection

2018-04-16 Thread g4-lisz
On 16.04.2018 11:27, Andreas Schneider wrote: > On Saturday, 14 April 2018 18:35:10 CEST g4-l...@tonarchiv.ch wrote: >> On 14.04.2018 17:58, Andreas Schneider wrote: >>> On Saturday, 14 April 2018 15:55:20 CEST g4-l...@tonarchiv.ch wrote: On 11.04.2018 18:09, g4-l...@tonarchiv.ch wrote:

Re: Working on keepalive messages while waiting for local connection

2018-04-16 Thread Andreas Schneider
On Saturday, 14 April 2018 18:35:10 CEST g4-l...@tonarchiv.ch wrote: > On 14.04.2018 17:58, Andreas Schneider wrote: > > On Saturday, 14 April 2018 15:55:20 CEST g4-l...@tonarchiv.ch wrote: > >> On 11.04.2018 18:09, g4-l...@tonarchiv.ch wrote: > >>> On 11.04.2018 17:31, Andreas Schneider wrote: > >

Re: Working on keepalive messages while waiting for local connection

2018-04-14 Thread g4-lisz
On 14.04.2018 18:35, g4-l...@tonarchiv.ch wrote: > > On 14.04.2018 17:58, Andreas Schneider wrote: >> On Saturday, 14 April 2018 15:55:20 CEST g4-l...@tonarchiv.ch wrote: >>> On 11.04.2018 18:09, g4-l...@tonarchiv.ch wrote: On 11.04.2018 17:31, Andreas Schneider wrote: > ould appreciate

Re: Working on keepalive messages while waiting for local connection

2018-04-14 Thread g4-lisz
On 14.04.2018 17:58, Andreas Schneider wrote: > On Saturday, 14 April 2018 15:55:20 CEST g4-l...@tonarchiv.ch wrote: >> On 11.04.2018 18:09, g4-l...@tonarchiv.ch wrote: >>> On 11.04.2018 17:31, Andreas Schneider wrote: ould appreciate a lot if someone could show me some sample code. I t

Re: Working on keepalive messages while waiting for local connection

2018-04-14 Thread Andreas Schneider
On Saturday, 14 April 2018 15:55:20 CEST g4-l...@tonarchiv.ch wrote: > On 11.04.2018 18:09, g4-l...@tonarchiv.ch wrote: > > On 11.04.2018 17:31, Andreas Schneider wrote: > >> ould appreciate a lot if someone could show me some sample code. > >> I think that ssh_event_dopoll() will handle it and cal

Re: Working on keepalive messages while waiting for local connection

2018-04-14 Thread g4-lisz
On 11.04.2018 18:09, g4-l...@tonarchiv.ch wrote: > On 11.04.2018 17:31, Andreas Schneider wrote: >> ould appreciate a lot if someone could show me some sample code. >> I think that ssh_event_dopoll() will handle it and call the appropriate >> callback. Don't use ssh_select() >> >> In master we h

Re: Working on keepalive messages while waiting for local connection

2018-04-11 Thread g4-lisz
On 11.04.2018 17:31, Andreas Schneider wrote: > On Wednesday, 11 April 2018 16:27:16 CEST g4-l...@tonarchiv.ch wrote: >> Hello all >> >> I realized that SSH servers with the keep-alive option enabled first >> send the keep-alive _global_ request as long as nothing had connected to >> the local TC

Re: Working on keepalive messages while waiting for local connection

2018-04-11 Thread Andreas Schneider
On Wednesday, 11 April 2018 16:27:16 CEST g4-l...@tonarchiv.ch wrote: > Hello all > > I realized that SSH servers with the keep-alive option enabled first > send the keep-alive _global_ request as long as nothing had connected to > the local TCP socket: > > $> ssh -v -N xxx@yyy -L 8088:testcom.co

Re: Working on keepalive messages while waiting for local connection

2018-04-11 Thread g4-lisz
Hello all I realized that SSH servers with the keep-alive option enabled first send the keep-alive _global_ request as long as nothing had connected to the local TCP socket: $> ssh -v -N xxx@yyy -L 8088:testcom.com:80     debug1: client_input_global_request: rtype keepal...@openssh.com want_repl

Working on keepalive messages while waiting for local connection

2018-04-09 Thread g4-lisz
Hi there I wrote some basic ssh client to forward a port. This involves binding a local listening socket and waiting for an application to connect. But as long as there is nothing connected to the local socket, the client is not reading from or writing to the channel. This seems to be an issue as