Have separate timeouts for upload by url ($wgCopyUpload[Async]Timeout)
authorBrian Wolff <bawolff+wn@gmail.com>
Thu, 6 Jun 2013 03:55:18 +0000 (00:55 -0300)
committerRelease notes rebase bot <matma.rex+releasenotesrebasebot@gmail.com>
Wed, 7 Aug 2013 19:05:07 +0000 (21:05 +0200)
commit7a0ed924ef35e4a5eca6ca154eaaaa8ed8292396
tree51716d7ed1b827ea73aa9f7c11ccc5b2531ec821
parent654f713af6c58d57b35364f4b10d45b2ba0384ad
Have separate timeouts for upload by url ($wgCopyUpload[Async]Timeout)

Add $wgCopyUploadTimeout and $wgCopyUploadAsyncTimeout to control
the timeout for the http request used to fetch the file during upload
by url. People reasonably may want to make this higher than $wgHTTPTimeout
for the case where very large files are being downloaded.

Also add the ability for callers of UploadFromUrl::fetchFile
to override the timeout as they please (and set any other HTTP opts).

This patch was inspired by conversation with dan-nl about gwtoolset.

Change-Id: Ia85a97434c14adcdaafc0802cbe0530bfa57a435
RELEASE-NOTES-1.22
includes/DefaultSettings.php
includes/job/jobs/UploadFromUrlJob.php
includes/upload/UploadFromUrl.php