From Hendrik.Muhs at web.de Wed Jun 15 14:33:58 2005 From: Hendrik.Muhs at web.de (Hendrik Muhs) Date: Wed, 15 Jun 2005 14:33:58 +0200 Subject: [pyOpenSSL] [PATCH] pyOpenSSL setdefaulttimeout fix for SecureXMLRPCServer Message-ID: <200506151433.59925.Hendrik.Muhs@web.de> Hello, the attached patch fixes a problem when using socket.setdefaulttimeout(x) (new in Python 2.3) together with the SecureXMLRPCServer (from the examples directory). The patch wraps socket.recv(buffer, flag) and discards SSL.WantReadError Exceptions. This exception is raised if setdefaulttimeout is used. The exception is not handled in the socket module, because it did not know about such an Exception in this place. I do not know if this is the right way to do it. It is more a workaround. Hendrik -------------- next part -------------- A non-text attachment was scrubbed... Name: SecureXMLRPCServer.py.patch Type: text/x-diff Size: 624 bytes Desc: not available URL: