paramiko SSHClient.connect not thread safe

Bug #725237 reported by Matthew Newcomb
6
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://www.icecube.wisc.edu/~mnewcomb/threadedssh.py

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.