Comment 1 for bug 1462999

Revision history for this message
fr34kyn01535 (fr34kyn01535) wrote : Re: Movim doesn't resolve hosts to SRV record

Technical aspect:

The following code resolves the ip & creates the connection:

$dnsResolverFactory = new React\Dns\Resolver\Factory();
$dns = $dnsResolverFactory->createCached('8.8.8.8', $loop);
$connector = new React\SocketClient\Connector($loop, $dns);

...

  $connector->create($domain, 5222)->then($xmpp_behaviour);

While React DNS is able to lookup SRV records (https://github.com/reactphp/dns/blob/master/src/Resolver/Resolver.php),
socket-client uses only the A record (https://github.com/reactphp/socket-client/blob/master/src/Connector.php)