Merge branch '4.3' into 4.4

* 4.3:
  [Mailer] fixed wrong error message when connection closes unexpectedly
This commit is contained in:
Fabien Potencier 2019-08-03 11:38:12 +02:00
commit 621c7405a4

View File

@ -80,6 +80,9 @@ abstract class AbstractStream
if ($metas['timed_out']) {
throw new TransportException(sprintf('Connection to "%s" timed out.', $this->getReadConnectionDescription()));
}
if ($metas['eof']) {
throw new TransportException(sprintf('Connection to "%s" has been closed unexpectedly.', $this->getReadConnectionDescription()));
}
}
$this->debug .= sprintf('< %s', $line);