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: type assertion to perIPTLSConn instead of erroneous perIPConn #1863

Closed KSpaceer closed 2 months ago

KSpaceer commented 2 months ago

If using MaxConnsPerIP setting along with HTTPS (TLS) server, the connection accepting leads to panic because of wrong type assertion.

This pull request fixes that problem

erikdubbelboer commented 2 months ago

Thanks!