timmyyuan/gobench

Grpc862 in goker failed to repro

Closed this issue · 1 comments

Mskxn commented

select { // Block here
case <-time.After(sleepTime - time.Since(connectTime)):
case <-ac.ctx.Done():
return

It seems that G2 will not hang up forever when timeout at L58.
I failed to repro it using goleak with a little delay before leak check instead of check it immediately.

This is possible because goleak filters goroutines by checking whether they are in a blocked state. In the case of 862, the goroutine switches between being blocked and running within a loop.