Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Awaiting connection when request for a port that does not exist. #3

Open
geovanef46 opened this issue Dec 6, 2019 · 0 comments
Open

Comments

@geovanef46
Copy link

geovanef46 commented Dec 6, 2019

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant