From: Bob Halley Date: Fri, 2 Sep 2005 05:33:14 +0000 (+0000) Subject: EALREADY is OK too X-Git-Tag: v1.3.4~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d625cd8f3be221d61983409e910bfc1df240ff5;p=thirdparty%2Fdnspython.git EALREADY is OK too Original author: Bob Halley Date: 2005-07-22 20:14:42 --- diff --git a/dns/query.py b/dns/query.py index f55de66b..f8c0ae3e 100644 --- a/dns/query.py +++ b/dns/query.py @@ -142,7 +142,7 @@ def _connect(s, address): s.connect(address) except socket.error: (ty, v) = sys.exc_info()[:2] - if v[0] != errno.EINPROGRESS and v[0] != errno.EWOULDBLOCK: + if v[0] != errno.EINPROGRESS and v[0] != errno.EWOULDBLOCK and v[0] != errno.EALREADY: raise ty, v def tcp(q, where, timeout=None, port=53, af=None):