Skip to content

Force localhost for local development #420

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

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

acogoluegnes
Copy link
Contributor

That is when the initial host is localhost, the user is guest and no address resolver has been provided.

This should prevent some difficulties met during the first local experiments with RabbitMQ Streams.

See spring-projects/spring-amqp#2522

That is when the initial host is localhost, the user
is guest and no address resolver has been provided.

This should prevent some difficulties met during the
first local experiments with RabbitMQ Streams.

See spring-projects/spring-amqp#2522
@michaelklishin michaelklishin merged commit 5ad0201 into main Sep 15, 2023
@michaelklishin michaelklishin added this to the 0.13.0 milestone Sep 15, 2023
@michaelklishin michaelklishin deleted the force-localhost-for-local-development branch September 15, 2023 18:38
github-actions bot pushed a commit that referenced this pull request Sep 15, 2023
…opment

Force localhost for local development
@michaelklishin
Copy link
Contributor

For tracking, here's the same PR for the .NET stream client: rabbitmq/rabbitmq-stream-dotnet-client#305.

acogoluegnes added a commit that referenced this pull request Nov 4, 2024
The dev mode is activated when no address resolver is set, the host is
localhost, and the user is guest. The dev mode sets a resolver that
always uses localhost, this avoids problems when e.g. the metadata frame
returns the hostname of a local container that the client application
cannot reach.

This commit adds a warn-level log message if the client detects a local
cluster setup (because there are several addresses passed in to the
address resolver).

References #420
github-actions bot pushed a commit that referenced this pull request Nov 4, 2024
The dev mode is activated when no address resolver is set, the host is
localhost, and the user is guest. The dev mode sets a resolver that
always uses localhost, this avoids problems when e.g. the metadata frame
returns the hostname of a local container that the client application
cannot reach.

This commit adds a warn-level log message if the client detects a local
cluster setup (because there are several addresses passed in to the
address resolver).

References #420
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

Successfully merging this pull request may close these issues.

2 participants