Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#36241 closed enhancement (wontfix)

Feed timeout defaults to 10 seconds

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


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

Change History (4)

#1 @obenland
8 years ago

  • Version trunk deleted

#2 @ocean90
8 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
8 years ago

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


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
8 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.