curl-library
FW: help: libCURL with epoll
Date: Tue, 29 Nov 2011 11:39:25 -0500
> >When I run profiler, I noticed that libCURL is invoking poll method
>> which is quite surprising to me, because I am using epoll to poll the
>> sockets and I did not expect this call.
>Maybe it is about time you presented an example code for us that shows
us what your code does. This makes it sound as if you're not using
libcurl the way you should for best performance.
Is there a way to share the code other than attaching code to the
email?I followed the link http://curl.haxx.se/mail/etiquette.html to
know the procedure to share the code. But there is nothing related to
this. Please suggest.
PFA image for the graph generated when I run profiler on my sample code.
And also find my sample code.
Is this expected flow?
I also ran the profiler on hiperfifo.c code and saw the same error with
this code also. I just replaced thread-unsafe libevent function calls
with thread-safe calls in hiperfifo.c. PFA hiperfifo.c source.
C-ares version: 1.7.5 and lib curl version is:7.21.7. I built libCURL
with the configuration settings: --enable-ares --enable-debug
--disable-optimize.
> >Next, I see some considerable amount of time being spent in
> >Curl_send_plain (to send request to server) and Curl_recv_plain
> >(receive response) calls. Is this again because of above error?
>No, those two are the functions that receive and send plain TCP data.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- application/octet-stream attachment: hiperfifo.c
- text/plain attachment: ATT3970680.txt
- text/plain attachment: ATT4106543.txt
- application/x-zip-compressed attachment: CurlSample.zip