Skip to content
Snippets Groups Projects
Commit 6c009759 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Merge branch '9298fileGetContentTimeoutError' into 'master'

refs #9298 fix timeout of file_get_contents

See merge request !184
parents cf58b259 ce30b8eb
No related branches found
No related tags found
1 merge request!184refs #9298 fix timeout of file_get_contents
Pipeline #2484 passed
......@@ -52,19 +52,19 @@ class DownloadPage {
"verify_peer" => false,
"verify_peer_name" => false,
),
'http' => array(
'timeout' => 1200,
),
);
if (isset($_COOKIE[SESSION_NAME])) {
$cookie = array(
$cookie_http = array(
// Copy cookie: to forward current QFQ user session
'http' => array(
'method' => "GET",
'header' => "Accept-language: en\r\n" .
"Cookie: " . SESSION_NAME . "=" . $_COOKIE[SESSION_NAME] . "\r\n",
'timeout' => 600,
),
'method' => "GET",
'header' => "Accept-language: en\r\n" .
"Cookie: " . SESSION_NAME . "=" . $_COOKIE[SESSION_NAME] . "\r\n",
);
$ctx = array_merge($ctx,$cookie);
$ctx['http'] = array_merge($ctx['http'],$cookie_http);
}
// The current session needs to be closed, cause the SESSION needs to be opened again by processing get_file_contents()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment