Bläddra i källkod

Show warning when we retry a TLS connection for downloads

Pádraic Brady 11 år sedan
förälder
incheckning
2972ec3d86
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      src/Composer/Util/RemoteFilesystem.php

+ 1 - 0
src/Composer/Util/RemoteFilesystem.php

@@ -232,6 +232,7 @@ class RemoteFilesystem
             && preg_match("|Peer certificate CN=`(.*)' did not match|i", $errorMessage, $matches)) {
                 $this->retryTls = false;
                 $expectedCommonName = $matches[1];
+                $this->io->write("    <warning>Retrying download from ".$originUrl." with SSL Cert Common Name (CN): ".$expectedCommonName."</warning>");
                 return $this->get($this->originUrl, $this->fileUrl, $additionalOptions, $this->fileName, $this->progress, $expectedCommonName);
             }
         }