Report forwarded to debian-devel@lists.debian.org:
Bug#3190; Package netstd.   debian-devel@lists.debian.org  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Ian Jackson <ian@chiark.chu.cam.ac.uk>:
New bug report received and forwarded to list.   Ian Jackson <ian@chiark.chu.cam.ac.uk>  Sorry, this message was lost when this bug report was restored from a backup.   X-Debian-Bugs: This is an autoforward from debian-bugs XFrom chiark.chu.cam.ac.uk!ian Sun Jun 2 15:49:52 1996 XReturn-Path: XReceived: from pixar.com by mongo.pixar.com with smtp X (Smail3.1.28.1 #15) id m0uQLy3-0005zFC; Sun, 2 Jun 96 15:49 PDT XReceived: from artemis.chu.cam.ac.uk by pixar.com with SMTP id AA24164 X (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sun, 2 Jun 1996 15:49:49 -0700 XReceived: from chiark.chu.cam.ac.uk by artemis.chu.cam.ac.uk with smtp X (Smail3.1.29.1 #33) id m0uQMsS-0007uVC; Mon, 3 Jun 96 00:48 BST XReceived: by chiark.chu.cam.ac.uk X id m0uQLxp-0002ZLC X (Debian /\oo/\ Smail3.1.29.1 #29.35); Sun, 2 Jun 96 23:49 BST XMessage-Id: XDate: Sun, 2 Jun 96 23:49 BST XFrom: Ian Jackson XTo: Debian bugs submission address XSubject: rlogin takes far too long when remote says Connection Refused X XPackage: netstd XVersion: 2.03-1 X X-chiark:~> time rlogin myrddin -l ijackson Xmyrddin.chu.cam.ac.uk: Connection refused XCommand had non-zero exit status 1 X0.03user 0.01system 0:31.06elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k X0inputs+0outputs (80major+27minor)pagefaults 0swaps XYou have new mail in /usr/spool/mail/ian X-chiark:junk> time telnet myrddin login XTrying 131.111.131.23... Xtelnet: Unable to connect to remote host: Connection refused XCommand had non-zero exit status 1 X0.05user 0.01system 0:00.11elapsed 50%CPU (0avgtext+0avgdata 0maxresident)k X0inputs+0outputs (105major+37minor)pagefaults 0swaps X-chiark:~> X XUsing strace I can see that it appears to be retrying the call ! X XIan.   Information forwarded to debian-devel@lists.debian.org:
Bug#3190; Package netstd.   debian-devel@lists.debian.org  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to tobias@et-inf.fho-emden.de:
Extra info received and forwarded to list.   tobias@et-inf.fho-emden.de  Sorry, this message was lost when this bug report was restored from a backup.   X-Debian-Bugs: This is an autoforward from debian-bugs XFrom server.et-inf.fho-emden.de!tobias Sun Jun 2 17:49:50 1996 XReturn-Path: XReceived: from pixar.com by mongo.pixar.com with smtp X (Smail3.1.28.1 #15) id m0uQNq9-0005zFC; Sun, 2 Jun 96 17:49 PDT XReceived: from server.et-inf.fho-emden.de by pixar.com with SMTP id AA25255 X (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sun, 2 Jun 1996 17:49:47 -0700 XReceived: (from tobias@localhost) by server.et-inf.fho-emden.de (8.7.5/8.7.3) id CAA07147; Mon, 3 Jun 1996 02:44:48 +0200 XMessage-Id: <199606030044.CAA07147@server.et-inf.fho-emden.de> XSubject: Re: Bug#3190: rlogin takes far too long when remote says Connection Refused XTo: ian@chiark.chu.cam.ac.uk XDate: Mon, 3 Jun 1996 02:44:47 +0200 (MET DST) XFrom: "Peter Tobias" XCc: debian-bugs@pixar.com XReply-To: tobias@et-inf.fho-emden.de XIn-Reply-To: from "Ian Jackson" at Jun 2, 96 11:49:00 pm XX-Mailer: ELM [version 2.4 PL23] XMime-Version: 1.0 XContent-Type: text/plain; charset=US-ASCII XContent-Transfer-Encoding: 8bit X XIan Jackson wrote: X> Package: netstd X> Version: 2.03-1 X> X> -chiark:~> time rlogin myrddin -l ijackson X> myrddin.chu.cam.ac.uk: Connection refused X> Command had non-zero exit status 1 X> 0.03user 0.01system 0:31.06elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k X> 0inputs+0outputs (80major+27minor)pagefaults 0swaps X> You have new mail in /usr/spool/mail/ian X> -chiark:junk> time telnet myrddin login X> Trying 131.111.131.23... X> telnet: Unable to connect to remote host: Connection refused X> Command had non-zero exit status 1 X> 0.05user 0.01system 0:00.11elapsed 50%CPU (0avgtext+0avgdata 0maxresident)k X> 0inputs+0outputs (105major+37minor)pagefaults 0swaps X> -chiark:~> X> X> Using strace I can see that it appears to be retrying the call ! X XI'll reassign the bug to libc5. inet/rcmd.c from libc5 uses the Xfollowing code which is causing the delay: X Xif (errno == ECONNREFUSED && timo <= 16) { X sleep(timo); X timo *= 2; X continue; X} X XYou'll see the same behaviour with every program that uses the rcmd Xlibrary function (telnet doesn't use rcmd). X XBTW: This is probably more a feature than a bug. X X XThanks, X XPeter X X-- X Peter Tobias EMail: X Fachhochschule Ostfriesland tobias@et-inf.fho-emden.de X Fachbereich Elektrotechnik und Informatik tobias@debian.org X Constantiaplatz 4, 26723 Emden, Germany   Bug reassigned from package `netstd' to `libc5'. Request was from "Peter Tobias" <tobias@server.et-inf.fho-emden.de> to debian-bugs-request@pixar.com.   "Peter Tobias" <tobias@server.et-inf.fho-emden.de>  Sorry, this message was lost when this bug report was restored from a backup.   Information forwarded to debian-devel@lists.debian.org:
Bug#3190; Package libc5.   debian-devel@lists.debian.org  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Mark Eichin <eichin@cygnus.com>:
Extra info received and forwarded to list.   Mark Eichin <eichin@cygnus.com>  Sorry, this message was lost when this bug report was restored from a backup.   X-Debian-Bugs: This is an autoforward from debian-bugs XFrom cygnus.com!eichin Sun Jun 2 18:30:39 1996 XReturn-Path: XReceived: from pixar.com by mongo.pixar.com with smtp X (Smail3.1.28.1 #15) id m0uQOTf-0005zFC; Sun, 2 Jun 96 18:30 PDT XReceived: from cygnus.com by pixar.com with SMTP id AA25600 X (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sun, 2 Jun 1996 18:30:38 -0700 XReceived: from tweedledumb.cygnus.com (tweedledumb.cygnus.com [192.80.44.1]) by cygnus.com (8.6.12/8.6.9) with SMTP id SAA11558; Sun, 2 Jun 1996 18:30:26 -0700 XReceived: from maneki-neko.cygnus.com by tweedledumb.cygnus.com (4.1/4.7) id AA27680; Sun, 2 Jun 96 21:30:24 EDT XReceived: by maneki-neko.cygnus.com; (8.7.5/1.1.8.2/20Sep95-0235PM) X id VAA07560; Sun, 2 Jun 1996 21:30:23 -0400 XSender: eichin@cygnus.com XTo: Ian Jackson XCc: debian-bugs@pixar.com XSubject: Re: Bug#3190: rlogin takes far too long when remote says Connection Refused XReferences: XFrom: Mark Eichin XDate: 02 Jun 1996 21:30:23 -0400 XIn-Reply-To: Ian Jackson's message of Sun, 2 Jun 96 23:49 BST XMessage-Id: XLines: 7 XX-Mailer: Gnus v5.2.2/Emacs 19.31 X XIan Jackson writes: X> Using strace I can see that it appears to be retrying the call ! X XHmm. From what I remember of the original BSD source, yes, it spins X(around a sleep, I think) trying to reconnect on a connection refused, Xuntil an alarm goes off. There's probably some arcane bit of history Xbehind it... but it should probably just go away :-)   Information forwarded to debian-devel@lists.debian.org:
Bug#3190; Package libc5.   debian-devel@lists.debian.org  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Miquel van Smoorenburg <miquels@cistron.nl>:
Extra info received and forwarded to list.   Miquel van Smoorenburg <miquels@cistron.nl>  Sorry, this message was lost when this bug report was restored from a backup.   X-Debian-Bugs: This is an autoforward from debian-bugs XFrom cistron.nl!miquels Mon Jun 3 08:50:54 1996 XReturn-Path: XReceived: from pixar.com by mongo.pixar.com with smtp X (Smail3.1.28.1 #15) id m0uQbuA-0005zFC; Mon, 3 Jun 96 08:50 PDT XReceived: from wormhole.cistron.nl by pixar.com with SMTP id AA05802 X (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Mon, 3 Jun 1996 08:50:47 -0700 XReceived: from picard.cistron.nl (miquels@picard.cistron.nl [194.235.77.21]) by wormhole.cistron.nl (8.7.3/8.7) with ESMTP id RAA14987; Mon, 3 Jun 1996 17:50:23 +0200 XReceived: (from miquels@localhost) by picard.cistron.nl (8.7.5/8.7.3) id RAA11702; Mon, 3 Jun 1996 17:50:11 +0200 XFrom: Miquel van Smoorenburg XMessage-Id: <199606031550.RAA11702@picard.cistron.nl> XSubject: Re: Bug#3190: rlogin takes far too long when remote says Connection Refused XTo: eichin@cygnus.com XDate: Mon, 3 Jun 1996 17:50:11 +0200 (MET DST) XCc: ian@chiark.chu.cam.ac.uk, debian-bugs@Pixar.com XIn-Reply-To: from "Mark Eichin" at Jun 2, 96 09:30:23 pm XX-Mailer: ELM [version 2.4 PL25 PGP2] XMime-Version: 1.0 XContent-Type: text/plain; charset=US-ASCII XContent-Transfer-Encoding: 7bit X XYou (Mark Eichin) wrote: X> Ian Jackson writes: X> > Using strace I can see that it appears to be retrying the call ! X> X> Hmm. From what I remember of the original BSD source, yes, it spins X> (around a sleep, I think) trying to reconnect on a connection refused, X> until an alarm goes off. There's probably some arcane bit of history X> behind it... but it should probably just go away :-) X XNo, it is needed. Sometimes our login machine still thinks it has a socket Xopen to the terminal server, while there isn't a socket open on the Xterminal server. Thus it can happen that the terminal server tries to Xconnect from a source port of which the login machine thinks it is already Xin use. Result is ECONNREFUSED, and the code in the BSD source just Xdoes a sleep and retries on another port number. X XIn fact that isn't really true; it doesn't work under Linux. I do have Xa fix though. X Xopen X-- X Miquel van | Cistron Internet Services -- Alphen aan den Rijn. X Smoorenburg, | mailto:info@cistron.nl http://www.cistron.nl/ Xmiquels@het.net | Tel: +31-172-419445 (Voice) 430979 (Fax) 442580 (Data)   Information forwarded to debian-devel@lists.debian.org:
Bug#3190; Package libc5.   debian-devel@lists.debian.org  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Ian Jackson <ian@chiark.chu.cam.ac.uk>:
Extra info received and forwarded to list.   Ian Jackson <ian@chiark.chu.cam.ac.uk>  Sorry, this message was lost when this bug report was restored from a backup.   X-Debian-Bugs: This is an autoforward from debian-bugs XFrom chiark.chu.cam.ac.uk!ian Mon Jun 3 19:44:13 1996 XReturn-Path: XReceived: from pixar.com by mongo.pixar.com with smtp X (Smail3.1.28.1 #15) id m0uQm6P-0005zFC; Mon, 3 Jun 96 19:44 PDT XReceived: from artemis.chu.cam.ac.uk by pixar.com with SMTP id AA02559 X (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Mon, 3 Jun 1996 19:44:11 -0700 XReceived: from chiark.chu.cam.ac.uk by artemis.chu.cam.ac.uk with smtp X (Smail3.1.29.1 #33) id m0uQm6R-0007uVC; Tue, 4 Jun 96 03:44 BST XReceived: by chiark.chu.cam.ac.uk X id m0uQm60-0002YCC X (Debian /\oo/\ Smail3.1.29.1 #29.35); Tue, 4 Jun 96 03:43 BST XMessage-Id: XDate: Tue, 4 Jun 96 03:43 BST XFrom: Ian Jackson XTo: Miquel van Smoorenburg XCc: eichin@cygnus.com, debian-bugs@Pixar.com XSubject: Re: Bug#3190: rlogin takes far too long when remote says Connection Refused XIn-Reply-To: <199606031550.RAA11702@picard.cistron.nl> XReferences: X <199606031550.RAA11702@picard.cistron.nl> X X(debian-bugs removed from the CC while we resolve this) X XMiquel van Smoorenburg writes ("Re: Bug#3190: rlogin takes far too long when remote says Connection Refused"): X... X> No, it is needed. Sometimes our login machine still thinks it has a socket X> open to the terminal server, while there isn't a socket open on the X> terminal server. Thus it can happen that the terminal server tries to X> connect from a source port of which the login machine thinks it is already X> in use. Result is ECONNREFUSED, and the code in the BSD source just X> does a sleep and retries on another port number. X XThis doesn't make sense to me. Which end has what idea of which Xconnections are where ? X XEven if you're right, I think there is some bug here that is being Xworked around rather badly, surely ? X XIf you'd like to try to explain to me what's going on I'd be grateful. X XIan.   Merged 3190 3541. Request was from Ian Jackson <ian@chiark.chu.cam.ac.uk> to server@bugs.debian.org.   Ian Jackson <ian@chiark.chu.cam.ac.uk>  Sorry, this message was lost when this bug report was restored from a backup.   Merged 3190 3541. Request was from Ian Jackson <ian@chiark.chu.cam.ac.uk> to server@bugs.debian.org.   Ian Jackson <ian@chiark.chu.cam.ac.uk>  Sorry, this message was lost when this bug report was restored from a backup.   Reply sent to David Engel <david@sw.ods.com>:
You have marked bug as forwarded.   David Engel <david@sw.ods.com>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at forwarded) by bugs.debian.org; 21 Mar 1997 03:18:06 +0000 Received: (qmail 22943 invoked from network); 21 Mar 1997 03:18:05 -0000 Received: from elo.sw.ods.com (160.86.13.20) by master.debian.org with SMTP; 21 Mar 1997 03:18:05 -0000 Received: by elo.sw.ods.com id m0w7uq8-00015PC (Debian Smail-3.2 1996-Jul-4 #2); Thu, 20 Mar 1997 21:18:00 -0600 (CST) Message-ID: <19970320211800.54775@sw.ods.com> Date: Thu, 20 Mar 1997 21:18:00 -0600 From: David Engel To: forwarded@bugs.debian.org Subject: Re: Bug#3541: rlogin blocks on ECONNREFUSED References: <19970320112746.14106@sw.ods.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.66 In-Reply-To: ; from Ian Jackson on Thu, Mar 20, 1997 at 09:33:00AM -0700 Forwarded. David -- David Engel ODS Networks david@sw.ods.com 1001 E. Arapaho Road (972) 234-6400 Richardson, TX 75081   Forwarded to forwarded@bugs.debian.org; Maintainer for libc5 is David Engel <david@debian.org>.

Message received at forwarded@bugs.debian.org:


Received: (at forwarded) by bugs.debian.org; 21 Mar 1997 03:20:08 +0000
Received: (qmail 22956 invoked from network); 21 Mar 1997 03:20:08 -0000
Received: from elo.sw.ods.com (160.86.13.20)
  by master.debian.org with SMTP; 21 Mar 1997 03:20:08 -0000
Received: by elo.sw.ods.com
	id m0w7us1-00015KC
	(Debian Smail-3.2 1996-Jul-4 #2); Thu, 20 Mar 1997 21:19:57 -0600 (CST)
Message-ID: <19970320211957.04295@sw.ods.com>
Date: Thu, 20 Mar 1997 21:19:57 -0600
From: David Engel <david@sw.ods.com>
To: forwarded@bugs.debian.org
Subject: Re: Bug#3190: rlogin takes far too long when remote says Connection Refused
References: <19970320112746.14106@sw.ods.com> <handler.s.C.85887887330898.info.6@bugs.debian.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.66
In-Reply-To: <handler.s.C.85887887330898.info.6@bugs.debian.org>; from Ian Jackson on Thu, Mar 20, 1997 at 09:33:00AM -0700

Forwarded.

David
-- 
David Engel                        ODS Networks
david@sw.ods.com                   1001 E. Arapaho Road
(972) 234-6400                     Richardson, TX  75081


Reply sent to David Engel <david@sw.ods.com>:
You have marked bug as forwarded.   David Engel <david@sw.ods.com>  Sorry, this message was lost when this bug report was restored from a backup.