Author: jfrederic.clere(a)jboss.com
Date: 2008-09-09 10:29:16 -0400 (Tue, 09 Sep 2008)
New Revision: 771
Modified:
branches/2.0.x/src/share/classes/org/apache/coyote/ajp/AjpAprProcessor.java
branches/2.0.x/src/share/classes/org/apache/coyote/ajp/AjpProcessor.java
Log:
Port JBWEB_117 from trunk.
Modified: branches/2.0.x/src/share/classes/org/apache/coyote/ajp/AjpAprProcessor.java
===================================================================
--- branches/2.0.x/src/share/classes/org/apache/coyote/ajp/AjpAprProcessor.java 2008-09-05
12:21:35 UTC (rev 770)
+++ branches/2.0.x/src/share/classes/org/apache/coyote/ajp/AjpAprProcessor.java 2008-09-09
14:29:16 UTC (rev 771)
@@ -995,6 +995,14 @@
outputBuffer.put(endMessageArray);
flush();
+ // read remaining data from the special first-body-chunk
+ if (first && request.getContentLength() > 0) {
+ try {
+ receive();
+ } catch (IOException e) {
+ }
+ }
+
}
Modified: branches/2.0.x/src/share/classes/org/apache/coyote/ajp/AjpProcessor.java
===================================================================
--- branches/2.0.x/src/share/classes/org/apache/coyote/ajp/AjpProcessor.java 2008-09-05
12:21:35 UTC (rev 770)
+++ branches/2.0.x/src/share/classes/org/apache/coyote/ajp/AjpProcessor.java 2008-09-09
14:29:16 UTC (rev 771)
@@ -997,6 +997,15 @@
// Add the end message
output.write(endMessageArray);
+
+ // read remaining data from the special first-body-chunk
+ if (first && request.getContentLength() > 0) {
+ try {
+ receive();
+ } catch (IOException e) {
+ }
+ }
+
}
Show replies by date