Added in blocking logic to the NIO connector. This logic ensures that if there is...
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 23 Oct 2006 17:39:28 +0000 (17:39 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 23 Oct 2006 17:39:28 +0000 (17:39 +0000)
commitbe856608e9529f82c6ebf9d30551904d0f54f4ff
tree35d85e686943763b39b275486f4b77abe582c224
parentcb3ca7c8c446bccebc5f3d7aafbb27549e6d1c5b
Added in blocking logic to the NIO connector. This logic ensures that if there is a slow client, we will not be wasting CPU cycles doing endless spinning.
Ideas for this implementation can be credited to the Tribes implementation where we have a pool of selectors, so that each sending thread uses its own selector and from Jeanfrancois Arcand's blog about wrapping a NIO channel in a blocking inputstream.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467044 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/catalina/tribes/transport/nio/NioSender.java
java/org/apache/coyote/http11/Http11NioProcessor.java
java/org/apache/coyote/http11/InternalNioInputBuffer.java
java/org/apache/coyote/http11/InternalNioOutputBuffer.java
java/org/apache/tomcat/util/net/NioChannel.java
java/org/apache/tomcat/util/net/NioEndpoint.java
java/org/apache/tomcat/util/net/NioSelectorPool.java [new file with mode: 0644]
java/org/apache/tomcat/util/net/SecureNioChannel.java