cURL / Mailing Lists / curl-users / Single Mail

curl-users

100% CPU Usage

From: James Campbell <jamessubmitsbugs_at_gmail.com>
Date: Wed, 7 Oct 2015 15:26:56 +0800

I have a script running the following command through a shell in PHP:

curl -m 30 -x 'proxy' -g -s -p -A 'Mozilla/5.0...' 'http://someurl' -D -

Fedora 23, curl 7.43.0 and 7.44.0 tested, compiled against the same libcurl
versions. Both result in 100% CPU usage per process.

Also tested on 7.27 and 7.40 with no abnormal CPU usage. I can't seem to
get this to replicate from the regular shell. The process is getting up to
~28seconds of CPU time before completing.

I have a feeling something may have changed in the proxy code between
versions?

-------------------------------------------------------------------
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.html
Received on 2015-10-07