Issue Feature Closed

#21997t3lib_div::getURL curl connection has no connection timeout

Michael Birchler 01/20/10, 14:36 updated 02/13/12, 07:36

Description

If you get content from a foreign server through t3lib_div::getURL in frontend and $GLOBALS[‘TYPO3_CONF_VARS’][‘SYS’][‘curlUse’] is true the content is fetched with curl. If the foreign server is down the TYPO3 page hangs till php max_execution_time is reached. I think this is not a good behavior.

I think the curl option CURLOPT_CONNECTTIMEOUT should be integrated by default.

For additional, it would be great if accessory curloptions are configurable or passable by parameter.

(issue imported from #M13309)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.