Skip to content
Snippets Groups Projects

Issue #3372534: request_timeout not used in HttpFetcher

Open Youri van Koppen requested to merge issue/feeds-3372534:3372534-tests_only into 8.x-3.x
2 files
+ 45
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -117,6 +117,12 @@ class CsvController extends ControllerBase {
* A HTTP response.
*/
public function nodes() {
// Check if there needs to be a delay.
$delay = \Drupal::state()->get('feeds_timeout');
if (is_numeric($delay) && $delay > 0) {
sleep($delay);
}
$last_modified = $this->state->get('feeds_test_nodes_last_modified');
if (!$last_modified) {
$file = 'nodes.csv';
Loading