You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by hg...@apache.org on 2003/09/24 10:37:10 UTC

cvs commit: jakarta-tomcat-connectors/jk/test/org/apache/ajp/test TestAll.java TestAjp13.java

hgomez      2003/09/24 01:37:10

  Modified:    jk/test/org/apache/ajp/test TestAll.java TestAjp13.java
  Log:
  More clean imports.
  
  BTW, note the new status code 999, which is returned by low level
  layer when it has handled itself some proto message like the new
  ping/pong request
  
  Revision  Changes    Path
  1.2       +3 -4      jakarta-tomcat-connectors/jk/test/org/apache/ajp/test/TestAll.java
  
  Index: TestAll.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/test/org/apache/ajp/test/TestAll.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestAll.java	19 Dec 2001 19:21:55 -0000	1.1
  +++ TestAll.java	24 Sep 2003 08:37:10 -0000	1.2
  @@ -1,10 +1,9 @@
   package org.apache.ajp.test;
   
   // junit
  -import junit.framework.*;
  -
  -// ajp
  -import org.apache.ajp.*;
  +import junit.framework.Test;
  +import junit.framework.TestCase;
  +import junit.framework.TestSuite;
   
   public class TestAll extends TestCase {
   
  
  
  
  1.2       +22 -9     jakarta-tomcat-connectors/jk/test/org/apache/ajp/test/TestAjp13.java
  
  Index: TestAjp13.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/test/org/apache/ajp/test/TestAjp13.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestAjp13.java	19 Dec 2001 19:21:55 -0000	1.1
  +++ TestAjp13.java	24 Sep 2003 08:37:10 -0000	1.2
  @@ -1,14 +1,20 @@
   package org.apache.ajp.test;
   
  -import org.apache.ajp.*;
  -import org.apache.tomcat.util.http.*;
  -
  -import java.io.*;
  -import java.net.*;
  -import java.util.*;
  -
  -// junit
  -import junit.framework.*;
  +import java.io.IOException;
  +import java.io.InputStream;
  +import java.io.OutputStream;
  +import java.net.ServerSocket;
  +import java.net.Socket;
  +
  +import junit.framework.Test;
  +import junit.framework.TestCase;
  +import junit.framework.TestSuite;
  +
  +import org.apache.ajp.Ajp13;
  +import org.apache.ajp.Ajp13Packet;
  +import org.apache.ajp.RequestHandler;
  +import org.apache.tomcat.util.http.BaseRequest;
  +import org.apache.tomcat.util.http.MimeHeaders;
   
   public class TestAjp13 extends TestCase {
   
  @@ -197,6 +203,13 @@
                       break;
                   }
               
  +            	// Special low level request allready handled (ie: PING/PONG)
  +            	if( status == 999 )
  +            	{
  +					request.recycle();
  +            		continue;
  +            	}
  +            	
                   if( status != 200 )
                       break;
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org