 |
? |
Author |
Message |
demz
Joined: 05 Sep 2012
Posts: 9
|
Posted: Thu Sep 27, 2012 3:07 am |

|
Okay im getting like hunderds of emails:
/bin/sh: line 1: 9855 Killed /usr/local/bin/php -q -f /home/website/domains/domain.com/public_html/rss2sql.php > /dev/null 2>&1
Seems like the cronjob with the script does not kill itself after a period of time and keeps hanging.. this means that like (i update every 5 minutes) the server has 200 zombie cronjobs from rss2sql.php update script, my hoster kills them now but is pissed @ me.
How to build in a timeout or somewhat in the script if a RSS feed doesn't react? OR is there already??
Thanks!
|
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2692
|
Posted: Thu Sep 27, 2012 8:37 am |

|
You can try editing the rss2sql.php script and enabling a timeout. Look for the following text in the file:
//
// $connectTimeoutLimit allows the limiting the amount of time cURL will
// wait to successfully connect to a remote server. Use with caution,
// a value too small will cause all connections to fail.
//$connectTimeoutLimit = 30;
Remove the '//' on the last line so it will look like this:
//
// $connectTimeoutLimit allows the limiting the amount of time cURL will
// wait to successfully connect to a remote server. Use with caution,
// a value too small will cause all connections to fail.
$connectTimeoutLimit = 30;
|
_________________
Create RSS Feeds
Audio Recording and Editing
|
|
 |
 |
demz
Joined: 05 Sep 2012
Posts: 9
|
Posted: Thu Sep 27, 2012 8:40 am |

|
Okay thanks!
Ill activate it asap!
Thanks!
|
|
|
 |
 |
|
|
|