[Top][All Lists]

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

Re: [bug-inetutils] already connected when closed

From: Karl Berry
Subject: Re: [bug-inetutils] already connected when closed
Date: Sat, 30 Jun 2007 08:17:09 -0500

    -    {
    -      printf ("Already connected to %s, use close first.\n", hostname);
    -      code = -1;
    -      return;
    -    }
    +    disconnect (0, 0);

It solves the stated issue, but introduces another: now if I do

ftp> open alpha.gnu.org
... gets connected, then, without any delay:
ftp> open ftp.gnu.org

It disconnects me from alpha even though the connection is still live.
In the case where the connection is really open, I'd actually like to
have the warning.  It's only where the connection has timed out that the
warning is superfluous.  Do you have a way to easily probe the
connection?  Send a no-op or something?

Anyway, if it's a case of one or the other, I'd rather have it always
disconnect (the above behavior) than always give the warning.


reply via email to

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