8245462: HttpClient send throws InterruptedException when interrupted but does not cancel request

Daniel Fuchs daniel.fuchs at oracle.com
Tue Jul 28 14:19:36 UTC 2020


On 28/07/2020 15:04, Michael McMahon wrote:
> The code is technically racy on the GET test, but it's often the case 
> when you want
> something to be racy then it turns out not to be in practice, 99 times 
> out of a 100 anyway
> (figures made up). I was thinking you could put a random sleep on the 
> client side before calling
> cancel (say between 1ms and the SERVER_LATENCY constant). Print out the 
> random value too
> in case it finds a problem.

Oh - that's a good point. Let me try that.

best regards,

-- daniel



More information about the net-dev mailing list