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

Ensuring that we get a server we can connect to from the list. #220

Closed
wants to merge 2 commits into from
Closed

Ensuring that we get a server we can connect to from the list. #220

wants to merge 2 commits into from

Conversation

adubey14
Copy link

Registry client returns first registry server it could connect to (instead of the first element of the list of all registered servers).

…stead of the first element of the list of all registered servers.
@coldfix
Copy link
Contributor

coldfix commented Jun 19, 2017

Hi,

thanks for your interest. Can you clean up a few things before merge:

  • most importantly: qualify the except clause with the appropriate exception type
  • remove NOP else: pass
  • join ret = ...; return ret into a single line return ...
  • use for i, (host, port) in enumerate(addrs) instead of manually counting addrl

@coldfix
Copy link
Contributor

coldfix commented Jul 28, 2017

what exception should we use (what will connect_stream throw)?

The one that you were getting and trying to avoid due to a server being down, i.e. the purpose of this PR.

Why did you push a random new version?

Nevermind, I'll clean it up.

@coldfix coldfix closed this Jul 28, 2017
@adubey14
Copy link
Author

adubey14 commented Jul 28, 2017 via email

@coldfix
Copy link
Contributor

coldfix commented Jul 28, 2017

It's okay. Don't bother I already merged a cleaned up version.

@adubey14
Copy link
Author

adubey14 commented Jul 28, 2017 via email

coldfix added a commit that referenced this pull request Aug 7, 2017
- Fix refcount leakage when unboxing from cache (#196)
- Fix TypeError when dispatching exceptions on py2 (unicode)
- Respect ``rpyc_protocol_config`` for default Service getattr (#202)
- Support unix domain sockets (#100,#208)
- Use first accessible server in ``connect_by_service`` (#220)
- Fix deadlock problem with logging (#207,#212)
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.

None yet

3 participants