delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/11/26/23:34:37

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Message-ID: <002001c176fc$c6c28ec0$0201a8c0@sos>
From: "Sergey Okhapkin" <sos AT prospect DOT com DOT ru>
To: "Corinna Vinschen" <vinschen AT redhat DOT com>
Cc: <cygwin-developers AT cygwin DOT com>
References: <003301c175de$ad837e70$0201a8c0 AT sos> <20011125213141 DOT A22654 AT cygbert DOT vinschen DOT de>
Subject: Re: inetutils (rexecd) patch
Date: Mon, 26 Nov 2001 23:34:12 -0500
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

----- Original Message -----
From: "Corinna Vinschen" <vinschen AT redhat DOT com>
To: "Sergey Okhapkin" <sos AT prospect DOT com DOT ru>
Sent: Sunday, November 25, 2001 3:31 PM
Subject: Re: inetutils (rexecd) patch


> Thanks for the patch but... you won't believe it, I've already
> patched rexecd the way you did (well, similar).  The reason I
> haven't released it so far is the annoying message I'm getting
> on whatever platform I'm trying to connect to the Cygwin rexecd:
>

Corinna, you can release it, it's not rexecd' problem:-)

>   $ rexec WindowsBox echo hello
>   Username at WindowsBox: corinna
>   Password: ....
>   hello
>   rexec: Error in read from remote host: Connection reset by peer
>
> I really don't understand what's going on there.  The command works
> perfectly but when it's finished, this `Connection reset by peer'
> message is produced.  The rexecd works the same way as rshd but rshd
> doesn't have that problem.  And even when backporting from the latest
> rexecd version I'm still getting this message.
>
> Do you have any idea what's going on there, perhaps?
>

I've found the problem. Winsock needs shutdown() to be called on application
exit to close the connection gracefully, existing game with SO_LINGER in
fhandler_socket::close() do not work properly (looks like winsock does a
hard reset on application exit). I did a fix in my local cygwin sources,
rexecd works much better now:

E:\...src\i686-pc-cygwin\winsup\cygwin>rexec localhost echo hello
Name (sos:sos):
Password (sos:sos):
hello

E:\...src\i686-pc-cygwin\winsup\cygwin>

I need some time to make a cleanup in my changes and to test the fix, I'll
post a diff after that. BTW remind me please - which mailing list should I
post the diff to?

Sergey Okhapkin
Somerset, NJ


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019