tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1519478 - /tomcat/trunk/java/org/apache/coyote/http11/filters/VoidInputFilter.java
Date Mon, 02 Sep 2013 17:11:28 GMT
Author: markt
Date: Mon Sep  2 17:11:27 2013
New Revision: 1519478

URL: http://svn.apache.org/r1519478
Log:
Ensure available() is consistent with isFinished()

Modified:
    tomcat/trunk/java/org/apache/coyote/http11/filters/VoidInputFilter.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/filters/VoidInputFilter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/filters/VoidInputFilter.java?rev=1519478&r1=1519477&r2=1519478&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/filters/VoidInputFilter.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/filters/VoidInputFilter.java Mon Sep  2 17:11:27
2013
@@ -123,7 +123,11 @@ public class VoidInputFilter implements 
 
     @Override
     public int available() {
-        return 0;
+        if (read) {
+            return 0;
+        } else {
+            return 1;
+        }
     }
 
 



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


Mime
View raw message