You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2002/02/09 17:23:59 UTC
cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/warp WarpRequest.java
remm 02/02/09 08:23:59
Modified: catalina/src/share/org/apache/catalina/connector/warp Tag:
tomcat_40_branch WarpRequest.java
Log:
- Update WARP.
Revision Changes Path
No revision
No revision
1.8.2.2 +6 -5 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/warp/Attic/WarpRequest.java
Index: WarpRequest.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/warp/Attic/WarpRequest.java,v
retrieving revision 1.8.2.1
retrieving revision 1.8.2.2
diff -u -r1.8.2.1 -r1.8.2.2
--- WarpRequest.java 17 Jan 2002 12:17:16 -0000 1.8.2.1
+++ WarpRequest.java 9 Feb 2002 16:23:59 -0000 1.8.2.2
@@ -180,11 +180,6 @@
throws IOException {
if (closed) throw new IOException("Stream closed");
- if (packet.getType()==Constants.TYPE_CBK_DONE) return(-1);
-
- if (packet.getType()!=Constants.TYPE_CBK_DATA)
- throw new IOException("Invalid WARP packet type for body");
-
if (this.packet.pointer<this.packet.size)
return(((int)this.packet.buffer[this.packet.pointer++])&0x0ff);
@@ -195,6 +190,12 @@
packet.reset();
this.request.getConnection().recv(packet);
+
+ if (packet.getType()==Constants.TYPE_CBK_DONE) return(-1);
+
+ if (packet.getType()!=Constants.TYPE_CBK_DATA)
+ throw new IOException("Invalid WARP packet type for body");
+
return(this.read());
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>