curl-users
Re:Re: Curl command line and libcurl is much slower than wget
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 13 Jan 2012 11:19:05 +0100 (CET)
Date: Fri, 13 Jan 2012 11:19:05 +0100 (CET)
On Fri, 13 Jan 2012, curl wrote:
> I also tried to get socket using curl_easy_getinfo(handle,
> CURLINFO_LASTSOCKET, &sock); and then read using system call "read" from
> socket, and the speed is keep the same as before, 12Mbyte. So I think the
> problem maybe under the connect stage.
I don't understand. Are you suggesting the connect handshake somehow damages
the ability to do fast transfers?
If you check the code, curl_easy_recv() is a very thin wrapper around recv()
when you use plain text protocols.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-01-13