fasthttp icon indicating copy to clipboard operation
fasthttp copied to clipboard

Possible race condition on fasthttp.RequestCtx

Open peczenyj opened this issue 2 years ago • 0 comments

Hello

Few days ago I find this tweet about fasthttp and go-fiber:

https://twitter.com/davidnix_/status/1720454052973044188?s=48

I try to reproduce this issue without success.

Based on the screenshots, I think I find the root cause: we assign the done channel to nil and if we are using it in some other goroutine such as using Done() method, this may trigger the race condition, but I can't write a unit test that fails with or without the race condition detector.

Regards

peczenyj avatar Nov 16 '23 17:11 peczenyj