[
https://issues.apache.org/jira/browse/MESOS-4853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15180520#comment-15180520
]
Neil Conway commented on MESOS-4853:
------------------------------------
Another option might be to arrange (via a new libprocess API?) to temporarily
get a dedicated OS thread in which to use the synchronous API. Not sure which
would be cleaner/simpler.
> Considering using libcurl multi interface to implement 'curl' in Mesos.
> -----------------------------------------------------------------------
>
> Key: MESOS-4853
> URL: https://issues.apache.org/jira/browse/MESOS-4853
> Project: Mesos
> Issue Type: Improvement
> Reporter: Jie Yu
> Assignee: Klaus Ma
>
> Reference:
> https://curl.haxx.se/libcurl/c/libcurl-multi.html
> Currently, some URI fetchers rely on 'curl' command directly (using
> subprocess). This is not ideal. The libcurl easy interface is blocking, so it
> does not compose well with our async environment. However, the multi
> interface seems to be suitable for our async environment. The tricky part is
> that we need to hook the fd selecting logic with our underlying
> libev/libevent runtime, but this should be doable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)