[Bug 240] New: ssh fails to handle errno == EHOSTUNREACH properly

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon May 13 17:15:50 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=240

           Summary: ssh fails to handle errno == EHOSTUNREACH properly
           Product: Portable OpenSSH
           Version: -current
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Miscellaneous
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: schwartz+q-bugzilla-mindrot at bio.cse.psu.edu


ssh is littered with open coded checks of errno after a read or write.
As a matter of good engineering, these should be consolidated into one
routine, try_again(errno).

The current set of checks (which are quite inconsistent) fail to
include all the values of errno that signal that a retry is called for.
For example, EHOSTUNREACH, is an advisory rather than an error.  Currently
ssh will abort a session when TCP/IP is perfectly happy to continue.
Because we want ssh to be robust and reliable, this oversight should
be repaired.

One might argue that if write constantly returns EHOSTUNREACH then we
should quit.  That's reasonable, and it underscores that the current
behaviour is wrong.  It should indeed require many advisories before 
taking such action.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list