[Solved] Buffered Socket Reader doesn’t wait for data from remote connection
[ad_1] You shouldn’t be using ndataServerReader.ready(). Your do/while loop (which should almost certainly just be a while loop) appears to assume that ndataServerReader.ready() indicates there’s more data to be read, which is not what it’s for. The Javadoc for Reader describes the ready() method as: Tells whether this stream is ready to be read. Returns: … Read more