commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: [Net]: FTPClient.abort problem
Date Tue, 14 Mar 2006 18:02:50 GMT

In message <78A73ABD8DB470439179DB682EA990B3025B87C5@mtlex02.NEXXLINK.INT>, "Gh
islain Gadbois" writes:
>I'm trying to abort an FTP transfer in a separate thread.
...
>Is there something that I'm doing wrong?

Off the top of my head, I don't think you're doing anything wrong.
The server replied with a 426, so it should have closed the data
connection, causing retrieveFile to terminate.

>What would be required to solve the problem?

If the action you plan to take after the abort is to quit, then you
can solve the problem by calling logout() right after abort().  The
server should definitely close the data connection in that case (but
who knows since it didn't do so for abort()).  Otherwise, use
retrieveFileStream and close the data connection from your end after
calling abort.

(BTW, thanks for providing the detailed sample program.)

daniel

-#-#-#-#-| Sleep and The Traveller |-#-#-#-#-#-#-#- http://www.savarese.org/
In distant lands, I hear the call of my home.     #     s a v a r e s e
Yet my work is not done.  My journey's just begun.-    software research
 -- http://www.sleepandthetraveller.com/          # http://www.savarese.com/


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


Mime
View raw message