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

Fixed tls connection issue #220

Merged
merged 1 commit into from
Apr 14, 2020

Conversation

shustsud
Copy link
Contributor

Motivation

I tried a tls connection but it failed.

Log:

$ go run producerForTls.go
pulsar.NewClient start.pulsar.NewClient end.INFO[0000] Connecting to broker                          remote_addr="pulsar+ssl://<hostname>:6651"
INFO[0000] TCP connection established                    local_addr="<ip>:<port>" remote_addr="pulsar+ssl://<hostname>:6651"
INFO[0000] Connection is ready                           local_addr="<ip>:<port>" remote_addr="pulsar+ssl://<hostname>:6651"
INFO[0000] Connecting to broker                          remote_addr="pulsar://<hostname>:6650"
WARN[0000] Failed to connect to broker.                  error=EOF remote_addr="pulsar://<hostname>:6650"
INFO[0000] Connection closed                             remote_addr="pulsar://<hostname>:6650"
INFO[0002] Connecting to broker                          remote_addr="pulsar://<hostname>:6650"
WARN[0002] Failed to connect to broker.                  error=EOF remote_addr="pulsar://<hostname>:6650"
INFO[0002] Connection closed                             remote_addr="pulsar://<hostname>:6650"
INFO[0006] Connecting to broker                          remote_addr="pulsar://<hostname>:6650"
WARN[0006] Failed to connect to broker.                  error=EOF remote_addr="pulsar://<hostname>:6650"
INFO[0006] Connection closed                             remote_addr="pulsar://<hostname>:6650"

After Lookup, the url seems to use BrokerServiceUrl.
If use tls connection, I think url will use BrokerServiceUrlTls.

Modifications

  • Fixed Lookup service.

Verifying this change

  • Make sure that the change passes the CI checks.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)

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

Successfully merging this pull request may close these issues.

2 participants