ceki        2004/05/15 08:23:51

  Modified:    tests/src/java/org/apache/log4j/net ShortSocketServer.java
  Log:
  Improved docs of the SocketServer test case
  
  Revision  Changes    Path
  1.5       +11 -3     
logging-log4j/tests/src/java/org/apache/log4j/net/ShortSocketServer.java
  
  Index: ShortSocketServer.java
  ===================================================================
  RCS file: 
/home/cvs/logging-log4j/tests/src/java/org/apache/log4j/net/ShortSocketServer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ShortSocketServer.java    4 May 2004 14:39:25 -0000       1.4
  +++ ShortSocketServer.java    15 May 2004 15:23:51 -0000      1.5
  @@ -31,9 +31,16 @@
    * client. This number is determined the totalsTest parameter, that is
    * the first argument on the commmand line. The second argument,
    * prefix, determines the prefix of the configuration file to
  - * use. Each run of the server will use a different properties
  - * file. For the i-th run, the path to the file is
  - * (prefix+i+".properties").
  + * use. 
  + * 
  + * Each run of the server will use a different properties file. For the i-th 
  + * run, the path to the file is (prefix+i+".properties").
  + * 
  + * There is strong coupling between this class and SocketServerTestCase. When
  + * a test case in  SocketServerTestCase tears down its envrionment, it will
  + * close its SocketAppender which will cause the SocketNode thread to die,
  + * allowing the next test case to start. See the for loop within the main method
  + * of this class.
    *
    * @author Ceki Gulcu */
   public class ShortSocketServer {
  @@ -68,6 +75,7 @@
         SocketNode sn = new SocketNode(socket, LogManager.getLoggerRepository());
         Thread t = new Thread(sn);
         t.start();
  +      // sn will die when an incoming connection is closed.
         t.join();
       }
     }
  
  
  

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

Reply via email to