Author: jfrederic.clere(a)jboss.com
Date: 2008-09-05 08:21:35 -0400 (Fri, 05 Sep 2008)
New Revision: 770
Modified:
trunk/java/org/apache/coyote/ajp/AjpAprProcessor.java
trunk/java/org/apache/coyote/ajp/AjpProcessor.java
Log:
Fix for JBWEB_117.
Modified: trunk/java/org/apache/coyote/ajp/AjpAprProcessor.java
===================================================================
--- trunk/java/org/apache/coyote/ajp/AjpAprProcessor.java 2008-09-04 11:00:08 UTC (rev
769)
+++ trunk/java/org/apache/coyote/ajp/AjpAprProcessor.java 2008-09-05 12:21:35 UTC (rev
770)
@@ -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: trunk/java/org/apache/coyote/ajp/AjpProcessor.java
===================================================================
--- trunk/java/org/apache/coyote/ajp/AjpProcessor.java 2008-09-04 11:00:08 UTC (rev 769)
+++ trunk/java/org/apache/coyote/ajp/AjpProcessor.java 2008-09-05 12:21:35 UTC (rev 770)
@@ -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) {
+ }
+ }
+
}
Show replies by date