WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#36241 closed enhancement (wontfix)

Feed timeout defaults to 10 seconds

Reported by: porcospino Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Feeds Keywords: needs-patch
Focuses: Cc:

Description

SimplePie's default timeout to fetch a feed is 10 seconds. If you add a feed that is unavailable, it can make your site unresponsive. I suggest a line like

$feed->set_timeout( 2 );

be added to the fetch_feed function

https://developer.wordpress.org/reference/functions/fetch_feed/

Change History (4)

#1 @obenland
4 years ago

  • Version trunk deleted

#2 @ocean90
4 years ago

  • Keywords needs-patch added
  • Type changed from defect (bug) to enhancement

This seems to be the case of the feed widget because the feeds on the dashboard are lazy-loaded.

As a workaround you can use the wp_feed_options action to apply the timeout setting.

#3 @stevenkword
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

@porcospino

Thank you very much for the bug report! Since there hasn't been any activity in several weeks and the timeout can be altered via the filters @ocean90 mentioned, I'm closing this ticket as "won't fix". If you have any further concerns please feel free leave a comment and we can revisit.

#4 @porcospino
4 years ago

@stevenkword I'm not sure how to proceed. Are you suggesting I use a filter on that action? Should I write a plug-in to set the timeout?

Note: See TracTickets for help on using tickets.