Closed jbrzusto closed 6 years ago
The problem is the ProjectSend is timing out in this situation:
A side benefit of the first approach is we can also calculate the hash of the file and check whether its a duplicate before (and possibly instead of) uploading it.
We're going for none-of-the-above. The timeouts are caused by PHP's session management so we just need to increase PHP session timeouts, from 24 minutes to something larger, e.g. 24 hours:
So in /etc/php5/apache2/php.ini
, we change:
session.gc_maxlifetime = 1440
to
session.gc_maxlifetime = 86400
This is happening occasionally. The most recent case is for 3 large files uploaded from a Mac. The session began with this request:
/sgm/uploads/partial
upload-process-form.php
, which succeeded, along with the requests that page includesIn case this is simply due to connection congestion (the upload speed here averaged ~ 60 kBytes / s), I've increased the timeouts for Apache in
/etc/apache2/mods-enabled/reqtimeout.conf
: