This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author anon01
Recipients anon01
Date 2021-04-27.11:45:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619523915.52.0.163488043908.issue43952@roundup.psfhosted.org>
In-reply-to
Content
When I run this code (on a UNIX system with temporary directory `/tmp/`):

```
from multiprocessing import connection
import threading
key=b"1"

def run():
    c=connection.Client("/tmp/xxx", authkey=key)
    c.send("data")

l=connection.Listener("/tmp/xxx", authkey=key)
threading.Thread(target=run).start()
c=l.accept()
print("receive", c.recv())
```

it prints out "receive data" normally.

However, in the special case that `key=b""` the doesn't print anything, and can only be interrupted with Ctrl+C.

`key=None` doesn't have that issue.

Note that this issue does happen when the client uses the key `b""` and the server uses the key `None`, but the program works normally if the reverse situation.

Python version: Python 3.9.3.
History
Date User Action Args
2021-04-27 11:45:15anon01setrecipients: + anon01
2021-04-27 11:45:15anon01setmessageid: <1619523915.52.0.163488043908.issue43952@roundup.psfhosted.org>
2021-04-27 11:45:15anon01linkissue43952 messages
2021-04-27 11:45:15anon01create