Awaiting connection when request for a port that does not exist.
geovanef46 opened this issue · 0 comments
geovanef46 commented
When trying to establish a connection to RabbitMQ using amqp and connection parameters:
{
hostname: 'hostname_ip',
protocol: 'mqtt',
port: 1883,
username: 'user',
password: 'user_pass'
}
By default if port 1883 belongs to mqtt communications, but you want to connect amqp. *This will result in an error * - the promise will be rejected immediately.
But if used:
{
hostname: 'hostname_ip',
protocol: 'amqp',
port: 1883,
username: 'user',
password: 'user_pass'
}
The promise cannot be resolved, and the connection request will wait until an application-defined limit (possible infinite loop).