Feature #21997

t3lib_div::getURL curl connection has no connection timeout

Added by Michael Birchler over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-01-20
Due date:
% Done:

0%

PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

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)

13309.diff View (1.91 KB) Administrator Admin, 2010-07-13 13:58

History

#1 Updated by Tolleiv Nietsch over 8 years ago

To add up something for the request it would be great to have these as well:

CURLOPT_SSL_VERIFYPEER ( default = TRUE)
CURLOPT_SSL_VERIFYHOST

CURLOPT_CAINFO
CURLOPT_CAPATH

#2 Updated by Dmitry Dulepov over 8 years ago

rev 8190

#3 Updated by Susanne Moog over 7 years ago

  • Target version deleted (4.5.0)

Also available in: Atom PDF