Revert "Fixed infinite loop described in INT-3453."

This commit is contained in:
Artem Bilan
2014-06-25 16:36:39 +03:00
parent 8754fa9ea9
commit 7e0eb7ad4e

View File

@@ -295,16 +295,8 @@ public class TcpNioConnection extends TcpConnectionSupport {
* @throws IOException
*/
private synchronized Message<?> convert() throws Exception {
if (this.channelInputStream.available() <= 0) {
if (!writingToPipe) {
return null;
}
else {
Thread.sleep(5);
if (this.channelInputStream.available() <= 0) {
return null;
}
}
if (!dataAvailable()) {
return null;
}
Message<?> message = null;
try {