cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: curl multi mysteriously returns no data at random times

From: Nayeem Syed <nayeem_at_flightline.co.uk>
Date: Mon, 21 Feb 2005 15:58:10 +0000

Daniel Stenberg (daniel-curl_at_haxx.se) wrote:
>
> On Mon, 21 Feb 2005, Nayeem Syed wrote:
>
> > at a random point without any particular pattern we seem to be getting no
> > responses coming back from our xml sources. When we checked with our sources
> > we found they never got any request from us in the first place.
>
> So when the problem occurs, it occurs for all 9 at once? Thus all connections
> for that thread seem to be broken?

no its random. sometimes its only a few, sometimes its all of them at once.

>
> Do you have any curl-related logging enabled that shows what curl does or
> doesn't do when it fails?

in the php class we made we make a log of what curl returns and we get a blank
string logged when this happens. i dont know of any ways to log curl at a
lower level.

>
> Do you need 200 threads to make it fail or does it happen with less as well?

no sometimes it happens with much less threads. but an apache restart seems to
fix it when it happens with less processes. today we had two occurances of
this during the day, both times the server hit 190 simultaneous users. earlier
in the day we had over 500 simultaneous users but had no problems with curl.

>
> How many sockets/connections can you handle in a single process (all threads
> taken together)?

i am not sure where I should look for it. We are running apache2 and there
doesnt seem to be any httpd.conf on it. Our sysadmin is away today, but I have
access to the server, where should it be? checked both apache2.conf and
commonapache2.conf but no sign of anything to do with this.

does curl create processes or threads? we are running mod_php on apache2 on a
linux machine, so I would assume it creates threads?

thanks

nayeem
Received on 2005-02-21