timeoutsocket - error 10022

Burkhard Kayser burkhard.kayser at freenet.de
Tue Feb 6 16:06:15 EST 2001


I want to user timeoutsocket together with telnetlib.

File "F:\PythonScripts\tn.py", line 13, in ?
    tn = telnetlib.Telnet(HOST)
  File "f:\python20\lib\telnetlib.py", line 122,
in __init__
    self.open(host, port)
  File "f:\python20\lib\telnetlib.py", line 139, in open

self.sock.connect((self.host, self.port))
  File "f:\python20\lib\timeoutsocket.py", line 210, in connect
    return
self.connect(addr, dumbhack=1)
  File "f:\python20\lib\timeoutsocket.py", line 182, in connect

sock.connect(addr)
  File "<string>", line 1, in connect
error: (10022, 'Invalid argument')

I seems that the value of addr is incorrect.
But if I test the script in by stepping through the code it works.
I'm running ActivePython build 202.

Has anyone had the same problem.






More information about the Python-list mailing list