tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r375613 - in /tomcat/connectors/trunk: http11/src/java/org/apache/coyote/http11/InternalAprOutputBuffer.java jk/java/org/apache/coyote/ajp/AjpAprProcessor.java
Date Tue, 07 Feb 2006 14:39:56 GMT
Author: remm
Date: Tue Feb  7 06:39:54 2006
New Revision: 375613

URL: http://svn.apache.org/viewcvs?rev=375613&view=rev
Log:
- sendbb uses a length, so "- i" is missing.

Modified:
    tomcat/connectors/trunk/http11/src/java/org/apache/coyote/http11/InternalAprOutputBuffer.java
    tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java

Modified: tomcat/connectors/trunk/http11/src/java/org/apache/coyote/http11/InternalAprOutputBuffer.java
URL: http://svn.apache.org/viewcvs/tomcat/connectors/trunk/http11/src/java/org/apache/coyote/http11/InternalAprOutputBuffer.java?rev=375613&r1=375612&r2=375613&view=diff
==============================================================================
--- tomcat/connectors/trunk/http11/src/java/org/apache/coyote/http11/InternalAprOutputBuffer.java
(original)
+++ tomcat/connectors/trunk/http11/src/java/org/apache/coyote/http11/InternalAprOutputBuffer.java
Tue Feb  7 06:39:54 2006
@@ -698,7 +698,7 @@
             int i = 0;
             int n = 0;
             do {
-                if ((n = Socket.sendbb(socket, i, bbuf.position())) < 0) {
+                if ((n = Socket.sendbb(socket, i, bbuf.position() - i)) < 0) {
                     throw new IOException();
                 }
                 i += n;

Modified: tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java
URL: http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java?rev=375613&r1=375612&r2=375613&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java (original)
+++ tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java Tue Feb  7
06:39:54 2006
@@ -1172,7 +1172,7 @@
             int i = 0;
             int n = 0;
             do {
-                if ((n = Socket.sendbb(socket, i, outputBuffer.position())) < 0) {
+                if ((n = Socket.sendbb(socket, i, outputBuffer.position() - i)) < 0) {
                     throw new IOException();
                 }
                 i += n;



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


Mime
View raw message