Question about com.sun.net.httpserver.HttpExchange#sendResponseHeaders

2019-01-31 Thread Wenbo Zhu
Per the HTTP spec, chunked encoding may not be needed if "Connection: close" is set and the TCP connection will be closed (FIN) to complete the response body. I am yet to write a test for this but the javadoc needs to address this behavior.. This behavior can be supported using the existing API,

RFR (testbug) 8218133: sun/net/www/protocol/http/ProtocolRedirect.java failed with "java.net.ConnectException"

2019-01-31 Thread Daniel Fuchs
8218133: sun/net/www/protocol/http/ProtocolRedirect.java failed with "java.net.ConnectException" https://bugs.openjdk.java.net/browse/JDK-8218133 webrev: http://cr.openjdk.java.net/~dfuchs/webrev_8218133/webrev.00/ Connection refused are usually a symptom of port reuse issue, and usi