]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
EALREADY is OK too
authorBob Halley <halley@dnspython.org>
Fri, 2 Sep 2005 05:33:14 +0000 (05:33 +0000)
committerBob Halley <halley@dnspython.org>
Fri, 2 Sep 2005 05:33:14 +0000 (05:33 +0000)
Original author: Bob Halley <halley@dnspython.org>
Date: 2005-07-22 20:14:42

dns/query.py

index f55de66b3014d5f36047f60cf0664d32e095efad..f8c0ae3e0732f8ddf09cf914d6eb9209c0117a6f 100644 (file)
@@ -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):