Message7439
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. |
|
Date |
User |
Action |
Args |
2012-08-28 20:47:37 | kevinmcmurtrie | set | messageid: <1346186857.73.0.419957314507.issue1967@psf.upfronthosting.co.za> |
2012-08-28 20:47:37 | kevinmcmurtrie | set | recipients:
+ kevinmcmurtrie, fwierzbicki |
2012-08-28 20:47:37 | kevinmcmurtrie | link | issue1967 messages |
2012-08-28 20:47:37 | kevinmcmurtrie | create | |
|