cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: help: libCURL with epoll

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 23 Nov 2011 22:27:44 +0100 (CET)

On Wed, 23 Nov 2011, Kopparapu, Sangeeta (GE Healthcare, consultant) wrote:

> 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.

> 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
Received on 2011-11-23