<div dir="ltr"><div><div>Odd, that was actually where I added a timeout:<br><br>$ctx = stream_context_create(array('http' => array('timeout' => 5)));<br>$file = file_get_contents ( $url , 0 , $ctx ) ;<br>

<br></div>That should limit the request to 5 sec max.<br><br></div>I have now deactivated the Template:Motd part completely. Can you chase the dragon again? ;-)<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Wed, Oct 9, 2013 at 12:27 AM, Marc A. Pelletier <span dir="ltr"><<a href="mailto:marc@uberbox.org" target="_blank">marc@uberbox.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On 10/08/2013 07:22 PM, Marc-André Pelletier wrote:<br>
> It took roughly 2 minutes for catfood to occupy the<br>
> totality of the apache worker threads.<br>
<br>
</div>Can you take a look at your code and see how it handles the lack of the<br>
template it seems to expect on commons?  Template:Motd/...  The presence<br>
of a 404 for that file in your php_error.log when it tries to get it<br>
seems to coincide with your script going berzerk.<br>
<div class="HOEnZb"><div class="h5"><br>
-- Marc<br>
<br>
<br>
_______________________________________________<br>
Labs-l mailing list<br>
<a href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">undefined</div>
</div>