RFR: 8233185: HttpServer.stop() blocks indefinitely when called on dispatch thread

Julia Boes julia.boes at oracle.com
Tue Nov 26 16:27:41 UTC 2019


Hi,

When HttpServer.stop(int delay) is called on the dispatcher thread of 
the server, the call blocks indefinitely as the thread is waiting for 
itself to die. The proposed fix in this case is to skip the join() and 
let the thread return immediately.

Bug: https://bugs.openjdk.java.net/browse/JDK-8233185

Webrev: http://cr.openjdk.java.net/~jboes/webrevs/8233185/webrev.00/


Regards,

Julia



More information about the net-dev mailing list