Fixing openssh to avoid occasional spurious connection failures

Robert Collins robert.collins@itdomain.com.au
Wed Nov 7 07:12:00 GMT 2001


===
----- Original Message -----
From: "Jonathan Kamens" <jik@curl.com>
To: <cygwin-apps@cygwin.com>
Sent: Friday, November 16, 2001 8:39 AM
Subject: Fixing openssh to avoid occasional spurious connection failures


> As I just noted in
>
<URL:http://www.cygwin.com/ml/cygwin-developers/2001-11/msg00080.html>,
> ssh connections from Cygwin can occasionally fail because a winsock
> bug causes the connection to be assigned a local port number which is
> already in use.
>
> The simplest workaround for this problem would be to put a default
> "ConnectionAttempts 4" setting in the ssh_config that gets generated
> by ssh-host-config.
>
> The next simplest workaround would be to get the OpenSSH maintainers
> to apply this patch:

And what about patching cygwin! to automatically retry on EADDRINUSE -
if we can detect that the winsock bug is the culprit? That would fix
ssh, squid, telnet, ftp....

Rob



More information about the Cygwin-apps mailing list