1
0
Fork 0

Show warning when we retry a TLS connection for downloads

pull/2745/head
Pádraic Brady 2014-02-26 00:09:47 +00:00
parent c9c6849df0
commit 2972ec3d86
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}
}