Author: jfrederic.clere(a)jboss.com
Date: 2009-11-30 08:05:00 -0500 (Mon, 30 Nov 2009)
New Revision: 1307
Modified:
trunk/java/org/apache/coyote/http11/InternalAprOutputBuffer.java
Log:
sendibb returns the number of bytes it was able to write.
so adjust the remaining length.
Modified: trunk/java/org/apache/coyote/http11/InternalAprOutputBuffer.java
===================================================================
--- trunk/java/org/apache/coyote/http11/InternalAprOutputBuffer.java 2009-11-29 13:36:05
UTC (rev 1306)
+++ trunk/java/org/apache/coyote/http11/InternalAprOutputBuffer.java 2009-11-30 13:05:00
UTC (rev 1307)
@@ -718,7 +718,7 @@
int end = bbuf.position();
int res = 0;
while (pos < end) {
- res = Socket.sendibb(socket, pos, bbuf.position());
+ res = Socket.sendibb(socket, pos, end - pos);
if (res > 0) {
pos += res;
} else {
@@ -750,7 +750,7 @@
int end = bbuf.position();
int res = 0;
while (pos < end) {
- res = Socket.sendibb(socket, pos, bbuf.position());
+ res = Socket.sendibb(socket, pos, end - pos);
if (res > 0) {
pos += res;
} else {
@@ -812,7 +812,7 @@
int pos = 0;
int end = bbuf.position();
while (pos < end) {
- res = Socket.sendibb(socket, pos, end);
+ res = Socket.sendibb(socket, pos, end - pos);
if (res > 0) {
pos += res;
} else {
Show replies by date