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

[libcurl connection pool] Add clean up routine and timmer #504

Closed
vhvb1989 opened this issue Aug 21, 2020 · 0 comments · Fixed by #530
Closed

[libcurl connection pool] Add clean up routine and timmer #504

vhvb1989 opened this issue Aug 21, 2020 · 0 comments · Fixed by #530
Assignees

Comments

@vhvb1989
Copy link
Member

Add a background routine to clean up the connection pool.
This requires to add a time_point to each connection.

Routine should run one time after some amount of time (say 2 minutes).
Then, routine must loop all connections lists from back to front and remove all expired connections up the the first not expired connection.
When it finishes, it should set the next clean up routine to start in 2 minutes from there.

Time interval can be set up as constant in curl.hpp details

@vhvb1989 vhvb1989 self-assigned this Aug 21, 2020
@vhvb1989 vhvb1989 mentioned this issue Aug 25, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant