【发布时间】:2010-09-15 20:13:57
【问题描述】:
我正在使用 libevent2 构建服务器,并且我正在尝试使服务器能够异步使用 libcurl,我想知道如何使用 libevent2 做到这一点。
我希望能够让 curl 发送事件,以便检查当前状态。
更新:我想通了
http://github.com/mathgladiator/node.ocaml/blob/master/ext/sandbox.c
【问题讨论】:
-
我查看了您的链接,
while(CURLM_CALL_MULTI_PERFORM == curl_multi_perform(ce->multi_handle, &(ce->still_running)));行不会导致您饿死其他 libevent 任务/回调吗?