69 Commits (da322643d6b107157b5cc2faf67c118016814871)

Author SHA1 Message Date
Jordi Boggiano da322643d6
Fix retry to add a small pause between retries after the second one, refs #10716 2 years ago
Stephan 6c3958ec86
Add warning if host is accessed via verify_peer or verify_peer_name disabled (#10722) 2 years ago
Jordi Boggiano 35995c2d87
Merge branch '2.2' into main 2 years ago
Jordi Boggiano 9bfd059420
Fix curl downloader to retry in case of DNS resolution failure, fixes #10716 2 years ago
Jordi Boggiano 6bd75d5738
Update phpstan & baseline (2158, 104) 2 years ago
Jordi Boggiano 6a466a120a
Enable strict types on all files 2 years ago
Jordi Boggiano 6da38f83a0
Add parameter types to all the things 2 years ago
Jordi Boggiano a16ed3d0ed
Add return types to private/internal methods 2 years ago
Jordi Boggiano abdc6893a6
Add void types where no return statement is present 2 years ago
Jordi Boggiano 5c98a2cf8e
Add phpstan-symfony to get type info about console InputInterface, fix many errors (#10476)
Extract common init/require commands functionality into PackageDiscoveryTrait
Extract some helper methods into BaseCommand for better types
2 years ago
Jordi Boggiano 8c0b4ff16b
Also retry for HTTP2 stream errors, fixes #10462 2 years ago
Jordi Boggiano e3d99cac59
Fix phpstan issues, update baseline and pin PHPStan version in 2.2 branch (#10474) 2 years ago
Jordi Boggiano 24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_* 2 years ago
Jordi Boggiano 7fc9000834
Also retry for SSL connection failures, refs #10124 3 years ago
Jordi Boggiano f509c41280
Upgrade PHPStan to 1.0 (#10253)
Co-authored-by: Martin Herndl <martin@herndl.org>
3 years ago
Jordi Boggiano ba1814f306
Added retry behavior for certain http status and curl error codes (#10162) 3 years ago
Jordi Boggiano 626370d444
Suggest COMPOSER_DISABLE_NETWORK if a possibly-offline state is detected (#10163)
Co-authored-by: Nils Adermann <naderman@naderman.de>
3 years ago
Jordi Boggiano aa4de3b13d
Fix CurlDownloader requesting gzip encoding even though unsupported, fixes #10153 3 years ago
Jordi Boggiano 1e3f7cfcba
Fix handling of json error responses 3 years ago
Jordi Boggiano a7963b7fed
Fix ComposerRepository handling of offline state to allow resolution as long as everything is present in the cache, fixes #10116 3 years ago
Jordi Boggiano 024f0eda53
Add a bunch of type info to Util namespace 3 years ago
Jordi Boggiano d3c176ec69
PHPStan Level 5 (#10070)
* Bump PHPStan to level 5

* Update seld/phar-utils to latest

* Add phpstan-setup / phpstan scripts
3 years ago
Jordi Boggiano 1f4401005c
Allow default_socket_timeout to extend the curl timeout if it is longer than 300s, fixes #10018 3 years ago
Jordi Boggiano 1b34495daa
Some phpstan level 4 fixes 3 years ago
Stephan 2f4b99eacd
MaxFileSizeException should reject download job (#9778) 3 years ago
John Stevenson 4f47a4c667
Proxy handling docs and tweaks (#9735) 3 years ago
Jordi Boggiano 5c35f37f92
Properly handle installed repos as additionalFixedRepository, fixes #9574 3 years ago
Jordi Boggiano c33f2615b5
Include json response bodies in transport exceptions, fixes #9606 3 years ago
Wissem Riahi f7bf635440 Add response info for 3xx/4xx/5xx http responses 3 years ago
Wissem Riahi bdecb4711d Add all curl_getinfo into the response and exception for curl requests 3 years ago
Wissem Riahi a5d79db0a7 Make sure total_time_us from curl progress is set 3 years ago
Wissem Riahi 370e082b4a Add saving time duration for curl HTTP requests 3 years ago
Jordi Boggiano e8a3a33023
Also output headers 4 years ago
Jordi Boggiano 8030fbc4ae
Add debug info for http status code 0 4 years ago
Jordi Boggiano b7d770659b
CS fixes 4 years ago
Jordi Boggiano 5248d6c9f1
Improve curl error reporting some more 4 years ago
Jordi Boggiano 8ed2aa8d6d
Make sure curl errors without message are shown as code, and add URL linked to the failure 4 years ago
johnstevenson cda49323eb Remove CURLOPT_SSL_FALSESTART option. Fixes #9405 4 years ago
Ilia Urvachev 4faaf79b58
CurlDownloader enable support for SSL-client certificates 4 years ago
Jordi Boggiano 34bdc6cbf2
Detect and hint for solutions for common curl errors, fixes #9376 4 years ago
Jordi Boggiano 881ec8c751
Use httpdownloader/curl to process install notifications 4 years ago
Jordi Boggiano 62eff8e979
Tweaks to new proxying code, refs #9324 4 years ago
johnstevenson d47261eb93 Refactor proxy handling for Composer2 4 years ago
Jordi Boggiano c5d8a13bc4
Bump curl timeout to 300 4 years ago
Simon Berger 2223b93efd Several small code improvements 4 years ago
Simon Berger 80d71ccb3f Merged isset, unset and str_replace calls 4 years ago
Simon Berger 33d7a64df9 Removed unused private functions 4 years ago
Simon Berger a6475a7118 Removed unused variables, properties and parameters of private functions 4 years ago
Stephan a16f32484b Downloader: add a max_file_size to prevent too big files to be downloaded 4 years ago
Jordi Boggiano 8cec8bd546
Allow verify_peer/verify_peer_name http options to be handled by curl downloader 4 years ago