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

Clarify port use when using PUBSUB_PROJECT env vars #11

Open
matthewadams opened this issue Sep 23, 2020 · 1 comment
Open

Clarify port use when using PUBSUB_PROJECT env vars #11

matthewadams opened this issue Sep 23, 2020 · 1 comment

Comments

@matthewadams
Copy link

The following sentences are confusing to me:

If you're not using the above-mentioned PUBSUB_PROJECT environment variable, you can simply check if port 8681 is available. If you do depend on one or more PUBSUB_PROJECT environment variables, you should check for the availability of port 8682 as that one will become available once all the topics and subscriptions have been created.

The first sentence is pretty clear. Use 8681 if you're not using PUBSUB_PROJECT env vars, but the second sentence seems to imply something.

Is that to say that, for each PUBSUB_PROJECTN, where N is a one-based index, that a client should connect to port 8681 + N, or, no matter how many PUBSUB_PROJECTN env vars there are, you always connect to port 8682?

Why would I ever connect to any port other than 8681? Please clarify. :)

@veleek
Copy link

veleek commented Oct 31, 2022

You should always connect to 8681. After the topics and subscriptions are created, the service starts listening on port 8682 ONLY to indicate that it's done. The listener on port 8682 doesn't do anything and will drop any requests sent to it. You should continue connecting to 8681 to access everything.

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

2 participants