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

concurrent pipe sends no longer allowed #45

Open
efanibi25 opened this issue Jun 23, 2024 · 0 comments
Open

concurrent pipe sends no longer allowed #45

efanibi25 opened this issue Jun 23, 2024 · 0 comments

Comments

@efanibi25
Copy link

efanibi25 commented Jun 23, 2024

I had to surround windows pipe sends in a lock context because of this change
https://github.com/python/cpython/blob/3.12/Lib/multiprocessing/connection.py

   def _send_bytes(self, buf):
            if self._send_ov is not None:
                # A connection should only be used by a single thread
                raise ValueError("concurrent send_bytes() calls "
                                 "are not supported")

This is the commit it is referenced
python/cpython#107219

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

1 participant