Bugzilla – Bug 3717
RFT client hangs up if all the transfers fail
Last modified: 2005-12-01 15:54:42
You need to log in before you can comment on or make changes to this bug.
ReliableFileTransferClient.java line 206 This becomes an infinite loop when failed==transferCount I modified the loop in this way and it seems to work: while (finished < transferCount && transferCount != 0) { if ((failed == transferCount) && (failed != 0)) { System.out.println( "All Transfers failed !"); System.exit(-1); } Thread.sleep(1000); } I've still not tested it when not all the transfers fail. Maybe a simpler solution can work also for this case: while (finished+failed < transferCount && transferCount != 0) { Thread.sleep(1000); }
Fixed in the branch and trunk.