Skip to content
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

Limit number of connections #50

Closed
lpgauth opened this issue Mar 3, 2017 · 2 comments · Fixed by #51
Closed

Limit number of connections #50

lpgauth opened this issue Mar 3, 2017 · 2 comments · Fixed by #51

Comments

@lpgauth
Copy link

lpgauth commented Mar 3, 2017

Hi,
Is there a way to limit the number of TCP connections opened? It seems that pool size only sets the number of "workers" not connections.

Thanks,
LP

@puzza007
Copy link
Owner

Sorry for the late reply. I didn't get a notification...

Will https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_TOTAL_CONNECTIONS.html do what you want? I'll try and take a look at it this weekend. PRs always welcome though :)

@puzza007
Copy link
Owner

Feel free to try this branch. I'd like to add some testing before merging it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants