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.91k stars 1.76k forks source link

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

Closed newacorn closed 2 months ago

newacorn commented 2 months 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 2 months ago

Thanks!