must come up with a better sleep, this brings the nio connector up to the same speed...
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 22 Jun 2006 17:09:14 +0000 (17:09 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 22 Jun 2006 17:09:14 +0000 (17:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@416423 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/InternalNioInputBuffer.java

index 2f229ef..948226a 100644 (file)
@@ -551,7 +551,7 @@ public class InternalNioInputBuffer implements InputBuffer {
                 return false;\r
             }\r
             timedOut = (readTimeout != -1) && ((System.currentTimeMillis()-start)>this.readTimeout);\r
-            if ( !timedOut && nRead == 0 ) try {Thread.sleep(25);}catch ( Exception x ) {}\r
+            //if ( !timedOut && nRead == 0 ) try {Thread.sleep(5);}catch ( Exception x ) {}\r
         }while ( nRead == 0 && (!timedOut) );\r
         //else throw new IOException(sm.getString("iib.failedread"));\r
         return false; //timeout\r