tontof / kriss_feed

A simple and smart (or stupid) feed reader
282 stars 54 forks source link

Operation timed out #254

Closed m-r-r closed 11 years ago

m-r-r commented 11 years ago

Hello,

When I try to load a long feed in kriss_feed, it fails with the following error:

Operation timed out after 4000 milliseconds with n out of N bytes received

I have this issue with the HEAD version of kriss_feed.

tontof commented 11 years ago

Arf for now, you can not change the parameter easily. You need to edit the index.php file and change these lines :

MyTool::$opts = array(
    'http' => array(
        'timeout' => 4,
        'user_agent' => 'KrISS feed agent '.FEED_VERSION.' by Tontof.net http://tontof.net/kriss/feed',
        )
    );

4 corresponds to the 4000 milliseconds. For the version 8 I will introduce a new parameter to change this.

m-r-r commented 11 years ago

Ok, I edited index.php and it works perfectly. Thanks :-)

tontof commented 11 years ago

https://github.com/tontof/kriss_feed/commit/66287d34ab4802fb02610eda1c503879f90448b4

For now you can install the new version and personnalize timeout with plugins : Simply add a plugin file in plugins directory with that :

<?php
MyTool::$opts['http']['timeout'] = '5';

To have timeout of 5 seconds for example