Author: jfrederic.clere(a)jboss.com
Date: 2008-09-09 10:32:12 -0400 (Tue, 09 Sep 2008)
New Revision: 772
Modified:
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/coyote/ajp/AjpAprProcessor.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/coyote/ajp/AjpProcessor.java
Log:
Port JBWEB_117 from trunk.
Modified:
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/coyote/ajp/AjpAprProcessor.java
===================================================================
---
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/coyote/ajp/AjpAprProcessor.java 2008-09-09
14:29:16 UTC (rev 771)
+++
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/coyote/ajp/AjpAprProcessor.java 2008-09-09
14:32:12 UTC (rev 772)
@@ -993,6 +993,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/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/coyote/ajp/AjpProcessor.java
===================================================================
---
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/coyote/ajp/AjpProcessor.java 2008-09-09
14:29:16 UTC (rev 771)
+++
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/coyote/ajp/AjpProcessor.java 2008-09-09
14:32:12 UTC (rev 772)
@@ -995,6 +995,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) {
+ }
+ }
+
}