JDK-4291371 - Java Issue Tracker
Nov 14, 1999 ... The looping code is actually in the InputStreamReader.fill() method. The ... program", 10000); port.enableReceiveTimeout(3000); InputStream ...
Nov 14, 1999 ... The looping code is actually in the InputStreamReader.fill() method. The ... program", 10000); port.enableReceiveTimeout(3000); InputStream ...
HttpExchange.getRequestBody().close() throws the following excpetion when the data is not read from the InputStream.java.io.IOException: Stream is closed. at sun.net.httpserver.FixedLengthInputStream.readImpl(FixedLengthInputStream.java:31).
addAttachment(String contentType, InputStream in). Because I don't know what type of InputStream that can be passed in, I can't use any of the provided DataSource implementation classes (e.g. java.activation.FileDataSource).
Versions (Unresolved/Resolved/Fixed). The Version table provides details related to the release that this issue/RFE will be addressed.The following code reads and prints as expected with jdk6 1.6.0_22. But, this prints all zeros with jdk7 b119. This was run on Ubuntu 10.04.
I have included simple Java programs that demonstrate this bug. Run TCPServer with something like java TCPServer open exec "notepad" exit. Then try connecting to it with TCPClient java TCPClient <host TCPServer was on> <port> <string of text>.