Message7439

Author kevinmcmurtrie
Recipients fwierzbicki, kevinmcmurtrie
Date 2012-08-28.20:47:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346186857.73.0.419957314507.issue1967@psf.upfronthosting.co.za>
In-reply-to
Content
The simplest test case it:
   new InteractiveConsole().interact();
Nothing executes until pressing ctrl-D.

It looks like the problem is caused by incorrectly stealing the code from java.nio.channels.Channels$ReadableByteChannelImpl.read().  This very critical bit is missing in 2.5.3's custom implementation:

if ((totalRead > 0) && !(in.available() > 0))
    break; // block at most once

Without this, it keeps making blocking reads until the buffer is full or the stream is closed.
History
Date User Action Args
2012-08-28 20:47:37kevinmcmurtriesetmessageid: <1346186857.73.0.419957314507.issue1967@psf.upfronthosting.co.za>
2012-08-28 20:47:37kevinmcmurtriesetrecipients: + kevinmcmurtrie, fwierzbicki
2012-08-28 20:47:37kevinmcmurtrielinkissue1967 messages
2012-08-28 20:47:37kevinmcmurtriecreate