Hang when connecting to an invalid port
Guy Gascoigne-Piggford
ggp at tripwire.com
Mon Sep 25 21:12:08 MEST 2006
If you try to ssh to a machine using the port of some other service the
ssh client hangs. For instance if you try to ssh to port 25 (smpt) then
the connection will hang indefinitely. The problem appears to be the
while loop at line 955 in SSH2Transport, when it doesn't read what it
expects, it will just sit there indefinitely waiting for something that
it recognizes.
Other than "don't do this", Can you suggest a better way to fix this
problem?
Thanks - Guy
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it." - Brian W. Kernighan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mindterm.appgate.com/pipermail/mindterm-users/attachments/20060925/b9e462e9/attachment.htm
More information about the Mindterm-users
mailing list