multiprocessing.connection.Client deadlocks when trying to connect to a listener without a password #123736
Labels
stdlib
Python modules in the Lib dir
topic-multiprocessing
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
We set up a multiprocessing.connection.Listener with no authkey. When we try to connect to it with a Client with an authkey, the Client deadlocks. Here is a working example:
which outputs:
and then stops.
Upon some investigation, the following bit of code from
Client
is to blame:since the listener is not configured to deliver the challenge to the connections. I think this would be resolved with an optional timeout kwarg in
answer_challenge
. If this suggestion is accepted I would be very happy to work on it 👍CPython versions tested on:
3.9, 3.10, 3.11, 3.12
Operating systems tested on:
macOS, Windows
The text was updated successfully, but these errors were encountered: