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 the MaxConns semaphore issue in HostClient. #1831

Closed newacorn closed 1 month ago

newacorn commented 1 month ago

Currently, the conns length and connsCount count in HostClient do not correctly implement the MaxConns semaphore mechanism. This fix ensures that the waiter wake-up chain does not break. See Issue: https://github.com/valyala/fasthttp/issues/1830

erikdubbelboer commented 1 month ago

Thanks!