cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: php curl_exec stopped

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 26 May 2013 23:20:42 +0200 (CEST)

On Sun, 26 May 2013, Asaf Cohen wrote:

> I'm kinda new to curl in php and I have the following problem:

Just note that "curl in php" is the binding we call PHP/CURL and is a layer of
code on top of plain libcurl. There's a separate list called curl-and-php for
PHP/CURL issues.

The PHP/CURL binding is written and maintained by the PHP team, not us.

> everything is working great until certain request just kills the page
> loading. It usually happens after 80-90 requests though it can be sometimes
> also after 20-30. I debugged it and it dies in curl_exec() (had a debug
> message before it but the one after didn't show)

> My code is written in php, the server is running php 5.3, apache on linux,
> hosting provider is godaddy shared hosting plan.

I don't know PHP. I'd ask you to repeat the problem with a program written in
plain C, and also I would only be really interested in this if you can repeat
the problem with a recent libcurl version. You didn't mention which version
you're using!

Are you (only) doing HTTPS requests? If so, what SSL backend is your libcurl
using?

> $server_output = curl_exec ($ch); // <------ IT DIES HERE INSIDE

... that's an example of a function in the PHP/CURL layer, as there's no such
function name in libcurl!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-26