You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Daniel F. Savarese" <df...@savarese.org> on 2004/09/09 20:06:51 UTC

Re: FTPClient related bugs: 30970 and 31122

In message <10...@newlyn2.providerlink.com>, Joseph Hindsley
 writes:
>I had submitted a patch last week for the FTP and FTPClient classes 
>(http://issues.apache.org/bugzilla/show_bug.cgi?id=30970) that doesn't 
>seem to have had any activity. The patch changes FTP to extend 
>SocketClient instead of TelnetClient since the implementation of 

If it were as simple as using SocketClient, that would have been done
from the start.  Unfortunately, the FTP control connection requires
telnet negotiation.  Also unfortunate is that telnet has asynchronous
elements that can only be implemented properly with two threads in the
absence of selectable channels.  Switching to SocketClient will make
FTPClient not work with many servers.  I think the long term solution
should be to branch, leaving the 1.2 series as J2SE 1.2 and 1.3 compatible,
and reimplement telnet using selectable I/O in a single thread on the
head branch; or start a new 2.0 branch either as a branch or in the
sandbox as commons-net2, since everything would have to be overhauled
once we start using java.nio.  Given how everyone involved has a
very limited supply of free time, I'm not sure when such a thing may
happen.  As it is we're behind on incorporating submitted feature
additions such as a network time protocol package :(

daniel



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: FTPClient related bugs: 30970 and 31122

Posted by "Jeffrey D. Brekke" <jb...@wi.rr.com>.
>>>>> On Thu, 09 Sep 2004 14:06:51 -0400, "Daniel F. Savarese" <df...@savarese.org> said:

> In message <10...@newlyn2.providerlink.com>,
> Joseph Hindsley writes:
>> I had submitted a patch last week for the FTP and FTPClient classes
>> (http://issues.apache.org/bugzilla/show_bug.cgi?id=30970) that
>> doesn't seem to have had any activity. The patch changes FTP to
>> extend SocketClient instead of TelnetClient since the
>> implementation of

> If it were as simple as using SocketClient, that would have been
> done from the start.  Unfortunately, the FTP control connection
> requires telnet negotiation.  Also unfortunate is that telnet has
> asynchronous elements that can only be implemented properly with two
> threads in the absence of selectable channels.  Switching to
> SocketClient will make FTPClient not work with many servers.  I
> think the long term solution should be to branch, leaving the 1.2
> series as J2SE 1.2 and 1.3 compatible, and reimplement telnet using
> selectable I/O in a single thread on the head branch; or start a new
> 2.0 branch either as a branch or in the sandbox as commons-net2,
> since everything would have to be overhauled once we start using
> java.nio.  Given how everyone involved has a very limited supply of
> free time, I'm not sure when such a thing may happen.  As it is
> we're behind on incorporating submitted feature additions such as a
> network time protocol package :(

When we move forward, lets stay on HEAD and branch for maintenance of
the 1.2/1.3 compatible versions.

-- 
=====================================================================
Jeffrey D. Brekke                                   jbrekke@wi.rr.com
Wisconsin,  USA                                     brekke@apache.org
                                                    ekkerbj@yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org