Welcome to Geeklog Wednesday, May 22 2013 @ 07:53 PM EDT
|
||||||||
![]() |
Forum Index > Support > General Geeklog Support |
New Topic
|
Post Reply
|
Unable to aquire feed reader |
|||
| ::Ben |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 01/14/05 Posts: 1359 |
Is there a way to set a timeout limit for feed aquisition on portal block ?
The feed I was trying to aquire was not available and the portal block freezed my geeklog site. Ben We speak french on http://geeklog.fr |
||||||
|
|||||||
| Laugh |
|
||||||
![]() ![]() ![]() ![]() ![]() Admin ![]() Status: offline ![]() Registered: 09/27/05 Posts: 876 |
I looked at the code and it doesn't look like we allow a way to set a timeout. This should be done and we should probably update the code to use HTTP_Request2.
Look in the paserfactory.class.php file at the _getFeed function (line 180). Change the line 182 to PHP Formatted Code $req = new HTTP_Request($url, array('allowRedirects' => true, 'readTimeout' => 2)); This should set it to timeout at 2 seconds. I haven't tested this but let me know if it works. For more information on this pear library you can also look at: http://pear.php.net/package/HTTP_Request/docs/latest/HTTP_Request/HTTP_Request.html Tom |
||||||
|
|||||||
| ::Ben |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 01/14/05 Posts: 1359 |
Tom,
Thanks for the tip.: I don't know if it works because the feed I needed is now fully available, but yes it can be a nice feature to avoid complete site freeze. Ben We speak french on http://geeklog.fr |
||||||
|
|||||||
| cokee88 |
|
||||||
![]() ![]() ![]() ![]() ![]() Newbie Status: offline ![]() Registered: 09/14/11 Posts: 4 |
Thank you for this easy tip. I will also apply this method to solve the issues.
|
||||||
|
|||||||
| Content generated in: 0.63 seconds |
|
|
|