Handling of failed connect()s when ssh-agent is busy

Gert Doering gert at greenie.muc.de
Mon Feb 12 20:37:00 EST 2001


Hi,

On Fri, Feb 09, 2001 at 09:28:58PM -0800, Jos Backus wrote:
[..]
> We fixed SSH-1.2.27 by wrapping this part of the code in a while-loop (looping
> if errno == ECONNREFUSED), and this appears to work well, solving our
> immediate problem.

Hmmm.  What happens if the agent is not running at all, but the socket
exists (leftover, for example, after the agent has died for whatever
reason)?

For me this sounds like your change would create an infinite loop - no good.

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert at greenie.muc.de
fax: +49-89-35655025                        gert.doering at physik.tu-muenchen.de





More information about the openssh-unix-dev mailing list