tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1518133 - /tomcat/trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java
Date Wed, 28 Aug 2013 10:06:53 GMT
Author: markt
Date: Wed Aug 28 10:06:53 2013
New Revision: 1518133

URL: http://svn.apache.org/r1518133
Log:
Remove code that duplicates code in super.available() which is called immediately before the
duplicate code.

Modified:
    tomcat/trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java?rev=1518133&r1=1518132&r2=1518133&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java Wed Aug 28 10:06:53
2013
@@ -163,10 +163,6 @@ public class InternalNioInputBuffer exte
             return available;
         }
 
-        available = lastValid - pos;
-        if (available>0) {
-            return available;
-        }
         try {
             available = nbRead();
         }catch (IOException ioe) {



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


Mime
View raw message