From 465b2f20c372d3c8327301aece6d0a4a9e9240db Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 26 Aug 2007 20:45:07 +0000 Subject: [PATCH] "iSocket is already connected" error has a different number under OpenBSD. fixes #3396 --- src/common/xmpp/transports_nb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/xmpp/transports_nb.py b/src/common/xmpp/transports_nb.py index c5115cc1c..35f908ea2 100644 --- a/src/common/xmpp/transports_nb.py +++ b/src/common/xmpp/transports_nb.py @@ -554,8 +554,8 @@ class NonBlockingTcp(PlugIn, IdleObject): # FIXME: This happens when we switch an already # connected socket to SSL (STARTTLS). Instead of # ignoring the error, the socket should only be - # connected to once. See #2846. - workaround = (errno.EALREADY, 10056) + # connected to once. See #2846 and #3396. + workaround = (errno.EALREADY, 10056, 56) # 10035 - winsock equivalent of EINPROGRESS if errnum not in (errno.EINPROGRESS, 10035) + workaround: