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

Optional thread binding #507

Merged
merged 4 commits into from
Oct 24, 2022
Merged

Conversation

notEvil
Copy link

@notEvil notEvil commented Sep 19, 2022

see #491

I'm quite happy with the result from a technical perspective (complexity of implementation, performance, potential issues, ...). It solves the motivating problem in #491, behaves nicely in #491 (comment) and avoids a race condition that haunted rpyc for a long time (#492 (comment)).

Regarding threads vs async, consider nogil. Threads in Python might have a bright future after all. Until then, the best argument imo still is transparency.

obviously missing:

  • consistent code style
  • tests
  • benchmark
  • documentation

notEvil and others added 4 commits September 11, 2022 09:27
- rpyc.core.protocol.Connection.serve: changed to start controlled race with thread from thread pool
- rpyc.core.protocol.Connection.serve: fixed bug related to threads continue waiting after close
@comrumino
Copy link
Collaborator

I'm going to merge this in and work on it from there.

@comrumino comrumino merged commit 0a3c654 into tomerfiliba-org:master Oct 24, 2022
@comrumino
Copy link
Collaborator

comrumino commented Oct 24, 2022

  • consistent code style (moved format to brine)
  • tests
  • benchmark
  • documentation (added param desc)

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