Commit 195b6684 authored by Dave Reid's avatar Dave Reid
Browse files

Issue #502744: Attempt to increase PHP time limit when...

Issue #502744: Attempt to increase PHP time limit when xmlsitemap_file_transfer() to prevent timeouts.
parent fc45a5c7
......@@ -108,6 +108,9 @@ function xmlsitemap_file_transfer($uri, $headers) {
// Attempt to increase time to transfer file.
$scheme = variable_get('file_default_scheme', 'public');
// Transfer file in 16 KB chunks to save memory usage.
if ($scheme && file_stream_wrapper_valid_scheme($scheme) && $fd = fopen($uri, 'rb')) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment