Commit version 24.12.13800
This commit is contained in:
@ -89,7 +89,7 @@ XML;
|
||||
*/
|
||||
public static function factory(Options $options)
|
||||
{
|
||||
$socket = new SocketClient($options->getAddress());
|
||||
$socket = new SocketClient($options->getAddress(), $options->getContextOptions());
|
||||
$object = new static($socket);
|
||||
$object->setOptions($options);
|
||||
return $object;
|
||||
@ -129,7 +129,7 @@ XML;
|
||||
// check if we didn't receive any data
|
||||
// if not we re-try to connect via TLS
|
||||
if (false === $this->receivedAnyData) {
|
||||
$matches = array();
|
||||
$matches = [];
|
||||
$previousAddress = $this->getOptions()->getAddress();
|
||||
// only reconnect via tls if we've used tcp before.
|
||||
if (preg_match('#tcp://(?<address>.+)#', $previousAddress, $matches)) {
|
||||
|
Reference in New Issue
Block a user