costin 02/05/17 12:49:03 Modified: coyote/src/java/org/apache/coyote ActionCode.java coyote/src/java/org/apache/coyote/tomcat3 Tomcat3Response.java Log: Added 2 ActionCodes ( not used for much at this moment except for experimentation ). One will allow tomcat to signal to the coyote layer that the user has called flush() on the response and a response must be sent imediately. ( jk may delay sending some messages - it's better to send fewer big messages). The other one will signal that a new webapp has been deployed. Revision Changes Path 1.7 +7 -0 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/ActionCode.java Index: ActionCode.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/ActionCode.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- ActionCode.java 9 Apr 2002 09:23:40 -0000 1.6 +++ ActionCode.java 17 May 2002 19:49:03 -0000 1.7 @@ -79,6 +79,11 @@ public static final ActionCode ACTION_COMMIT = new ActionCode(); + /* A flush() operation originated by the client + */ + public static final ActionCode ACTION_CLIENT_FLUSH = new ActionCode(); + + public static final ActionCode ACTION_CUSTOM = new ActionCode(); @@ -90,6 +95,8 @@ public static final ActionCode ACTION_STOP = new ActionCode(); + + public static final ActionCode ACTION_WEBAPP = new ActionCode(); /** * Callback for lazy evaluation - extract the remote host address. 1.5 +5 -0 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/Tomcat3Response.java Index: Tomcat3Response.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/Tomcat3Response.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- Tomcat3Response.java 2 May 2002 04:19:03 -0000 1.4 +++ Tomcat3Response.java 17 May 2002 19:49:03 -0000 1.5 @@ -72,6 +72,7 @@ import org.apache.tomcat.util.net.ServerSocketFactory; import org.apache.tomcat.util.log.*; +import org.apache.coyote.ActionCode; /** The Response to connect with Coyote. * This class mostly handles the I/O between Tomcat and Coyte. @@ -129,6 +130,10 @@ coyoteResponse.sendHeaders(); } + public void clientFlush() throws IOException { + coyoteResponse.action( ActionCode.ACTION_CLIENT_FLUSH, coyoteResponse ); + } + public void doWrite( byte buffer[], int pos, int count) throws IOException {
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>