Not a bug

Can not download for long time

dalankedesu 4 years ago updated by Vlad R 4 years ago 1

I found that i can not download for a long time, especially when i download directly using my browser. I guest it is a timeout problem.

i have checked my php setting  max_input_time was set to 300, i also have checked my php_fpm setting, set request_terminate_timeout = 300

there is the php log for timeout:


[28-Feb-2019 04:30:59] WARNING: [pool www] child 15688, script '/filerun/index.php' (request: "POST /filerun/index.php?module=fileman§ion=do&page=download&archiveName=%5Bphilosophy-raws%5D%5BK-ON!!%5D%5B02%5D%5BBDRIP%5D%5BHi10P%20FLAC%5D%5B1920X1080%5D.mkv") executing too slow (34.820260 sec), logging
[28-Feb-2019 04:30:59] NOTICE: child 15688 stopped for tracing
[28-Feb-2019 04:30:59] NOTICE: about to trace 15688
[28-Feb-2019 04:30:59] NOTICE: finished trace of 15688
[28-Feb-2019 04:35:29] WARNING: [pool www] child 15688, script '/filerun/index.php' (request: "POST /filerun/index.php?module=fileman§ion=do&page=download&archiveName=%5Bphilosophy-raws%5D%5BK-ON!!%5D%5B02%5D%5BBDRIP%5D%5BHi10P%20FLAC%5D%5B1920X1080%5D.mkv") execution timed out (304.857300 sec), terminating
[28-Feb-2019 04:35:29] WARNING: [pool www] child 15688 exited on signal 15 (SIGTERM) after 360.056297 seconds from start

and slow log

[28-Feb-2019 04:30:59] [pool www] pid 15688
script_filename = /filerun/index.php
[0x00007f5fd9415000] outputFile() 

[0x00007f5fd9414dd0] sendDefault() 

[0x00007f5fd9414970] sendHTTPFile() 

[0x00007f5fd9414710] run() 


Not a bug

Simply set "max_execution_time" to longer than 300 seconds. Or, if you are using Apache, install "mod_xsendfile" and enable it from FileRun's control panel. This is by no means a FileRun bug.