Re: Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

From: Date: Thu, 20 Nov 2008 19:43:02 +0000
Subject: Re: Re: PHP Warning: HTTP request failed -- BSD resource limit reached?
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-283607@lists.php.net to get a copy of this message
On 20-Nov-08, at 10:46 AM, Nathan Rixham wrote:
Daniel P. Brown wrote:
On Thu, Nov 20, 2008 at 11:50 AM, Rene Fournier <m5@renefournier.com> wrote:
Don't think that can be it, since (a) the other processes are not being denied their http requests and (b) requests are going to two servers.
Have you checked your firewall settings? It may be configured to deny requests temporarily on hosts it thinks may be attempting an HTTP DDoS, or perhaps something similar. Nathan mentioned the same, but is it possible that you're only considering a hardware firewall? Unless explicitly configured, a software firewall on the OS level could be blocking all matching traffic on all interfaces (including the LAN).
Rene, are you forking the command line script for each request by any chance? if you are remember to do an exit() after each one is finished otherwise the new forked process will stay open until cleaned up by the system (or until the thread that forked is finished) which could be creating you're problem. apologies if way off the mark, just attempting some lateral thinking on this one!
No apologies necessary -- I really appreciate the feedback. But no, I'm not forking anything. Each script (process) runs in a loop, and during each iteration it will call file_get_contents(Server A/B) one or more times.

« previous php.general (#283607) next »