[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] already connected when closed

From: Alfred M. Szmidt
Subject: Re: [bug-inetutils] already connected when closed
Date: Wed, 27 Jun 2007 13:01:40 +0200 (CEST)

   One minor niglet in ftp that has always caught me is that you can't
   reopen a closed connection without an explicit close first.  For

   $ ftp ftp.gnu.org
   # wait a few minutes, so the connection gets closed.
   ftp> open ftp.gnu.org
   Already connected to ftp.gnu.org, use close first.

   Well, I knew that, that's why I wanted to reopen :).  If the
   connection is already closed, is there any harm in just going

   I realize it's not exactly trivial, since it means `open' has to
   somehow get the state of the connection before issuing the message,
   but hopefully that's ultimately feasible?

Actually, it should be trivial.  We already store the state, but it
sounds as if the variable that keeps the state isn't getting flipped.

But, despite that, I cannot reproduce it:

ftp> open ftp.gnu.org
Connected to ftp.gnu.org.
220 GNU FTP server ready.
Name (ftp.gnu.org:ams): anonymous
ftp> ls
200 PORT command successful. Consider using PASV.
ftp> [waiting a few minutes for the connection to timeout]
ftp> ls
421 Timeout.
ftp> open ftp.gnu.org
Connected to ftp.gnu.org.

What version of GNU ftp are you using?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]