8330033: com/sun/net/httpserver/bugs/B6431193.java fails in AssertionError after JDK-8326568
Reviewed-by: jpai, dfuchs
This commit is contained in:
parent
279ed0ddd5
commit
70944ca54a
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user