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

multi interface not implemented #4

Open
iustin opened this issue Nov 13, 2012 · 0 comments
Open

multi interface not implemented #4

iustin opened this issue Nov 13, 2012 · 0 comments

Comments

@iustin
Copy link
Contributor

iustin commented Nov 13, 2012

Hi,

Currently curl (Haskell) bindings only export the easy interface, but completely ignore the multi interface. Having that would allow a better use of curl in non-threaded environments, by actually doing the various requests in parallel (threaded use is blocked by issue #3 currently).

The usual way of using the multi interface is to build "regular" easy handles, and then register them with a "multi" handle; after that, there are two possibilities: select/wait on a set of sockets (as computed by curl itself) and use curl_multi_perform, or use curl_multi_socket_action which seems be a fancier interface. Not sure which way maps best for Haskell use, but reading just the C interface, multi_perform seems simpler.

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

No branches or pull requests

1 participant