35 Commits (c043fe841b038d890f2f18fe54e607ccdbc790fe)

Author SHA1 Message Date
Nils Adermann c043fe841b Remove sleeps from curl handling, select it is responsible for waiting
The current sleeps mean that large files download slowly as select would
return quickly when data has arrived and needs to be processed, but the
sleep waits while the buffers are full.

On the flipside we need to ensure that some code that would keep the CPU
busy if run too often does not get run every time select returns.
4 years ago
Jordi Boggiano 08f0af4623
Add docblocks to HttpDownloader, refs #9209 4 years ago
Jordi Boggiano b7d770659b
CS fixes 4 years ago
Julian van den Berkmortel 23a1d783db Reject job within "HttpDownloader" when an exception is thrown, refs #9424 4 years ago
Jordi Boggiano 3f6899946b
Avoid using curl when it has been disabled, fixes #9423 4 years ago
Jordi Boggiano 36a9c47830
Fix typo from a637072058 4 years ago
Jordi Boggiano a637072058
Fix canUseCurl logic to allow local_cert/local_pk to reach curl, refs #9384 4 years ago
Jordi Boggiano 1d7ed333c9
Make sure curl is only used when safe to do so, fixes #9381 4 years ago
Jordi Boggiano 34bdc6cbf2
Detect and hint for solutions for common curl errors, fixes #9376 4 years ago
Jordi Boggiano 472f78bff1
Auto-disable misbehaving curl downloader on php 5, refs #9002 4 years ago
Simon Berger a6475a7118 Removed unused variables, properties and parameters of private functions 4 years ago
Simon Berger 7ef87626ac Fixed self usage in closure fails on PHP 5.3 4 years ago
Jordi Boggiano 9f380d606c
Add basic progress bar capability while waiting for jobs to complete 4 years ago
Jordi Boggiano 8f6e82f562
Add support for aborting running promises cleanly 4 years ago
Jordi Boggiano 0dad963cd8
Add executeAsync to ProcessExecutor and allow Loop class to wait on it in addition to HttpDownloader 4 years ago
Jordi Boggiano 40a35abb94
Resolve options when creating requests to fix 5.3 build 5 years ago
Jordi Boggiano 4cb74d33e6
Forward default HttpDownloader options to RemoteFilesystem/CurlDownloader, fixes #8757 5 years ago
Adam Žurek 406a28708f updated phpstan to 0.12 5 years ago
Jordi Boggiano eb3e3063b8
Revert "When network is disabled all uncached requests result in 404"
This reverts commit c325112670.
5 years ago
Nils Adermann c325112670 When network is disabled all uncached requests result in 404 5 years ago
Nils Adermann 7ef3a31de7 Make TransportException in network disabled case clearer
Otherwise it's a bit hard to work out what request triggered the exception
5 years ago
Jordi Boggiano d37642d9f2
Add missing use 6 years ago
Jordi Boggiano 3f5a986170
Show warning in all 400/500 responses if available, fixes #7814 6 years ago
Matthew Brown 65903aacfd Fix type issues (#7996)
* Fix type issues found by Psalm
6 years ago
Jordi Boggiano 6c782599f1
Make IOInterface implement psr-4 LoggerInterface, fixes #5180 6 years ago
Jordi Boggiano 3dfcae99a9 Add parallel download capability to FileDownloader and derivatives 6 years ago
Jordi Boggiano fc03ab9bba Add COMPOSER_DISABLE_NETWORK env var for debugging 6 years ago
Jordi Boggiano 5d2b3276eb Avoid starting all jobs immediately 6 years ago
Jordi Boggiano 64384f8b15 Fix tests 6 years ago
Jordi Boggiano 9986b797fb Add support for redirects/retries in curl downloader 6 years ago
Jordi Boggiano fd11cf3618 Port/extract most behavior of RemoteFilesystem to CurlDownloader 6 years ago
Jordi Boggiano 09fd239f24 Fix factory test 6 years ago
Jordi Boggiano f946d8eb5a More RemoteFilesystem usage removals and some repository/vcs driver refactorings 6 years ago
Jordi Boggiano 713bc4de1d Minor fixes and updated the rest of the code/tests to use HttpDownloader 6 years ago
Jordi Boggiano 56805ecafe Add HttpDownloader to wrap/replace RemoteFilesystem with a new curl multi implementation 6 years ago