I use Apache2, ROR. I implement uploading files to the server via a web form, using HTTP standard method POST. The process itself:
- I specify in the form of a file to download and send, for example 40MB.
- The browser starts loading 1% .. 100%, takes 17 seconds.
- Next, the browser writes the wait, spending 25 seconds
After that, the entire file is uploaded to the server. After uploading an apache file to upload_tmp_file, does the passenger perform any actions with it, like caching or integrity checking? I noticed one moment, if you pause loading the page, or leave it, at the moment when this interval begins in 25 seconds, the file immediately appears in the folder that is not damaged. Interests, exactly Passenger (it is visible in processes) that does with the file after the Apache loaded it in tmp? And until this action (on the file) is completed, the upload action will not work, thus it will not render the page and will not transfer it to the user. As a result, this expectation is obtained in 25 seconds.
Update
I use Ror, upload the 80mb file to the server (apache), using the protocol (http), a very large "wait" delay appears. Download takes 1..100%, then a long wait for TTFB. Passanger is to blame in my opinion, I noticed where time is wasted, and I don’t understand what exactly is wrong .. With small files, everything is fast .. I use the usual download method. The question is: is such a delay normal as in the picture or is it caused by it?
