-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MaxIdleConnsPerHost in Client #25
Comments
There is
|
Closing this issue, since this is not a bug :) |
Thanks! In my case it will be more useful, to set both Does it makes sense? |
Fasthttp client drops unused connections after 10 seconds. So |
Hello @valyala In considering fasthttp for use in the router for Cloud Foundry, we are concerned that the lack of control of idle Keepalive connections exposes a vulnerability. With many open keepalive connections, a denial of service attack could be executed far more easily than when most connections are closed after handling the request. Managing total open connections is also important, but it isn't the same thing. We would prefer to limit keepalive connections to something much lower than total connections. Would you be open to reconsidering support of this feature? We would be willing to offer a PR. We are also exploring workarounds that involve counting the number of connections ourselves and appending Thank you! |
Hi!
Thanks for the library! π
Am I understand it right, that there is no ability to reuse connections in manner of
net/http
β when the client tries to use idle (free connection) when it possible, or create new one, even ifMaxIdleConnsPerHost
limit exceeded?The text was updated successfully, but these errors were encountered: