paramiko SSHClient.connect not thread safe
Bug #725237 reported by
Matthew Newcomb
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
paramiko (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 10.04, python 2.6.5
I call connect to several hosts. Each connect from it's own thread. On one of those hosts I don't have permission to log in anymore. The results are nondeterministic. Sometimes I get what I expect, an authentication failed problem. Other times I get a socket error: [Errno -2] Name or service not known. Run the script 5 times, you get 5 different answers. If you put a lock around the call to connect I get the same authentication failed exception ten times out of ten.
The source for the script is available here: http://
To post a comment you must log in.