[Freeipa-devel] Wrong timeout parameter in ipapython

Sylvain Baubeau bob at glumol.com
Fri Mar 11 03:22:15 UTC 2011


  Hi,

I was facing an error with ipapython that caused an NSPRError exception to
be raised at line 159 of ipapython/nsslib.py :

157                 logging.debug("connecting: %s", net_addr)
158                 try:
159                     self.sock.connect(net_addr, family)
160                 except Exception, e:
161                     logging.debug("Could not connect socket to %s,
error: %s, retrying..",
162                                   net_addr, str(e))

The error message was : [Errno -5990] (PR_IO_TIMEOUT_ERROR) I/O operation
timed out.

It seems like the second argument to 'connect' is a timeout, not the
socket family. I attached a patch that just removes the second argument.
Or am I missing something ?

Regards
Sylvain Baubeau
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Removed-wrong-timeout-parameter.patch
Type: application/octet-stream
Size: 982 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110310/e8ffefb4/attachment.obj>


More information about the Freeipa-devel mailing list