- {
- 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.
Thanks,
Karl
_______________________________________________
bug-inetutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-inetutils