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

Refactor onion proxy requests to use curl multi mode #501

Merged
merged 5 commits into from
Jul 22, 2024

Conversation

jagerman
Copy link
Member

The current cpr::PostCallback approach used for proxy requests (e.g. from the last hop to a SOGS or to the big file server) runs into considerable limitations when there are more than a handful of simultaneous requests, and can encounter deadlocks with bugs in cpr's threadpool implementation. This replaces it using libcurl's single-threaded, "multi handle" approach, using our libevent event loop (from libquic) to manage the requests.

This should allow more efficient requests and considerably more capacity for parallel in-progress proxied requests in each storage server.

The current cpr::PostCallback approach used for proxy requests (e.g.
from the last hop to a SOGS or to the big file server) runs into
considerable limitations when there are more than a handful of
simultaneous requests, and can encounter deadlocks with bugs in cpr's
threadpool implementation.  This replaces it using libcurl's
single-threaded, "multi handle" approach, using our libevent event loop
(from libquic) to manage the requests.

This should allow more efficient requests and considerably more capacity
for parallel in-progress proxied requests in each storage server.
@jagerman jagerman merged commit 8616387 into oxen-io:dev Jul 22, 2024
1 check was pending
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 this pull request may close these issues.

1 participant