8330033: com/sun/net/httpserver/bugs/B6431193.java fails in AssertionError after JDK-8326568

Reviewed-by: jpai, dfuchs
This commit is contained in:
Darragh Clarke 2024-04-10 16:11:06 +00:00
parent 279ed0ddd5
commit 70944ca54a

View File

@ -50,10 +50,9 @@ public class B6431193 {
is.readAllBytes(); is.readAllBytes();
// .. read the request body // .. read the request body
String response = "This is the response"; String response = "This is the response";
handlerIsDaemon = Thread.currentThread().isDaemon();
t.sendResponseHeaders(200, response.length()); t.sendResponseHeaders(200, response.length());
os.write(response.getBytes()); os.write(response.getBytes());
} finally {
handlerIsDaemon = Thread.currentThread().isDaemon();
} }
} }
} }