Fix so that we don't do a busy read, instead we are properly doing a NIO poller wait
This way, we can achieve blocking read, without wasting CPU cycles.
Since we are using Java 5, I will be changing this implementation from using synchronized to using the Exchanger, this is also to avoid anyi locks that can happen. For example, in the current implementation the poller can call notify before we have had a chance to call wait
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@416444
13f79535-47bb-0310-9956-
ffa450edef68