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 ...
I have included simple Java programs that demonstrate this bug.You can use the sleep argument with TCPServer to get to hang around before exiting, this allows you to make sure TCPClient can connect succefully when TCPServer is still running. Sample code
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).
HttpExchange.getRequestBody().close() throws the following excpetion when the data is not read from the InputStream.at sun.net.httpserver.LeftOverInputStream.close(LeftOverInputStream.java:48). Attaching the program to produce it. Alos need the port of http.jar for JDK 1.5.