Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in Java FTP by (420 points)
Hi,

I have noticed that if I block traffic using firewall just before issuing delete
command for file. FTP Client hangs until exception is thrown cause of
timeout... If I remove firewall rule which is blocking traffic after exception,
file gets removed! This is very nasty behaviour... any ideas how can I prevent
this happening?

I used tcpdump to log packets comming to ftp server machine and I see
multiple rerequest to delete that file.

Even if I call cancelTransfer and disconnect, this happens.

I want to be sure that file is not deleted when exception occures.

Best regards,

Juha Moisio

3 Answers

0 votes
by (162k points)
Hi, post the log file so we can see what has happened.

The file will only be deleted on the server if the server has received the command to do so. If you remove the rule while the transmitted packets are still on the network (e.g. within a minute or two) I suppose the server may still receive them.
0 votes
by (420 points)
hi,

Thanks for your answer... it seems that there isn't much I can do to prevent that happening?
Only thing I could try is set tcp timeout so high that it won't retransmit delete command any more...
I don't know how long it should be, because yesterday we were testing this situation and after five minutes
it still deletes file when you remove firewall rule.

Any other suggestions?

Br,

Juha Moisio
0 votes
by (162k points)
Post the log file so we can see what is being sent to the server ...

Categories

...