commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <>
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.)


-#-#-#-#-| Sleep and The Traveller |-#-#-#-#-#-#-#-
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
 --          #

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message