Bug 3717 - RFT client hangs up if all the transfers fail
: RFT client hangs up if all the transfers fail
Status: RESOLVED FIXED
: RFT
RFT
: 4.0.1
: PC Linux
: P3 normal
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-09-02 05:13 by
Modified: 2005-12-01 15:54 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-09-02 05:13:14
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);
}
------- Comment #1 From 2005-12-01 15:54:42 -------
Fixed in the branch and trunk.