2013-08-14, 10:52:49
I forgot to modify configuration.php with the global api_timeout. So that is just the fallback.
This used to be important because we were calling the API constantly now not so much, althought I still would not want an off site API call to exceed 500ms, it might have been the issues the site was experiencing lately.
I might add some stats to see why our API is taking so long to respond.
API calls should be fast fast, like 60ms plus curl overhead.
Thanks for the find
To override this you can add
$api_timeout = 500; // request timeout in ms
to configuration.php
or gsconfig or anywhere else global.
This used to be important because we were calling the API constantly now not so much, althought I still would not want an off site API call to exceed 500ms, it might have been the issues the site was experiencing lately.
I might add some stats to see why our API is taking so long to respond.
API calls should be fast fast, like 60ms plus curl overhead.
Thanks for the find
To override this you can add
$api_timeout = 500; // request timeout in ms
to configuration.php
or gsconfig or anywhere else global.