paramiko SSHClient.connect not thread safe
Hi,
Ubuntu 10.04, python 2.6.5 and a few threads that basically do this:
s = paramiko.
s.set_missing_
s.load_
s.connect(hostname, username=uname)
Running these threads causes this exception:
Traceback (most recent call last):
File "threadedssh.py", line 67, in run
s.connect(
File "/usr/lib/
for (family, socktype, proto, canonname, sockaddr) in socket.
gaierror: [Errno -2] Name or service not known
However if I do this:
sLock.acquire()
s.connect(hostname, username=uname)
sLock.release()
Everything works just fine.
What can I do????
Question information
- Language:
- English Edit question
- Status:
- Needs information
- For:
- Ubuntu paramiko Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Matthew Newcomb for more information if necessary.