ikariiin / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

SSH Keepalives #526

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open connection through firewall which kills idle connections
2. Type nothing, until after timeout.
3. Try to send again

Expected output is that the connection will stay alive. What I see instead is 
that the connection has closed but connectbot does not notice until it gets a 
timeout after I type.

A use case is that I have 2 machines at work - my work desktop and my AAsus 
Transformer next to me. The transformer does social stuff - twitter, irc, etc, 
and I do this all through an SSH connection to my hosted machine. Sometimes 
there are idle times on IRC and so the connection may drop, this is frustrating 
for a supposedly live connection. 

All versions are affected.

How to resolve the issue - SSH Keepalives. They both keep the connection open, 
and allow the application to detect when the connection has been closed on them 
earlier.

Original issue reported on code.google.com by rikr...@gmail.com on 3 Nov 2011 at 11:00