juergen     2003/08/19 00:08:50

  Modified:    
testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
                        TProcessors.java
  Log:
  If the HttpClient is brocken and a connection can not be established use a new 
HttpClient (just to be sure).
  
  Revision  Changes    Path
  1.66      +6 -5      
jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java
  
  Index: TProcessors.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- TProcessors.java  6 Aug 2003 11:00:30 -0000       1.65
  +++ TProcessors.java  19 Aug 2003 07:08:50 -0000      1.66
  @@ -686,7 +686,8 @@
                           throw e;
                       } else {
                           System.out.println(Thread.currentThread().getName() + ": 
retry connection " + i + " out of " + MAX);
  -                        try {Thread.currentThread().sleep(i*i);} catch( 
InterruptedException x ) {};
  +                        try {Thread.currentThread().sleep(i*i);} catch( 
InterruptedException x ) {}
  +                        client = new HttpClientExtended(user, password); // the old 
client might be brocken
                           continue;
                       }
                   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to