cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: 100% CPU Usage

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Thu, 08 Oct 2015 11:14:55 +0200

On Wednesday 07 October 2015 15:26:56 James Campbell wrote:
> 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?

Please write a minimal example (a self-contained PHP script that shows us
the problem).

Kamil
-------------------------------------------------------------------
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-08