[REBOL] Re: Rebol and FTP (recursive stuff in particular)
From: sterling:rebol at: 14-Dec-2000 11:13
Yes. FTP will close the old connection to a given host if a new one
is made but in a different directory. That is also the same behavior
I see here with the latest experimental (2.4.39 on Linux). I also
watched my netstat and only one connection stayed active. The only
situation where you could end up with more than one connection to a
single host is if you are using two different users to log in as.
If you really want to make sure that all connections are closed
immediately then you can set the port cache size down to zero:
This will have the effect that the control connection is closed at the
end of the request and no ports at all will ever be cached by REBOL
FTP (not so efficient). If you set it to 1 then it should cache only
one connection. If you are only connecting to a single host as a
single user then you should see no difference in how it's all
working. All sequential reads within a single directory will reuse
the command port but access of a different directory will create a new
command port and close the last one.
If you are seeing different results... like multiple command ports
open to the same host, please send as much info as you can into
feedback as a bug report so we can track down the problem.