valyala / fasthttp

Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
MIT License
21.73k stars 1.75k forks source link

Fix issues with tests interfering with each other in certain situations. #1842

Closed newacorn closed 1 month ago

newacorn commented 1 month ago

In some cases, the goroutines started by one test do not terminate smoothly before the next round of tests begins, causing interference between tests.

Performance Impact: This results in test completion times not increasing linearly with the count value.

Correctness Impact: It affects the accuracy of memory allocation test cases.

Fix partial issues of this issue.: https://github.com/valyala/fasthttp/issues/1839

erikdubbelboer commented 1 month ago

Thanks!