Patch to fix socket problem in python running native under windows

This commit is contained in:
2004-01-27 22:28:06 +00:00
parent d8d42b2519
commit bede48ead2

View File

@@ -0,0 +1,16 @@
Index: dns/query.py
===================================================================
RCS file: /proj/cvs/dnspython/dns/query.py,v
retrieving revision 1.16
diff -u -u -r1.16 query.py
--- dns/query.py 6 Sep 2003 08:21:04 -0000 1.16
+++ dns/query.py 16 Jan 2004 11:53:13 -0000
@@ -130,7 +130,7 @@
s.connect(address)
except socket.error:
(ty, v) = sys.exc_info()[:2]
- if v[0] != errno.EINPROGRESS:
+ if v[0] != errno.EINPROGRESS and v[0] != errno.EWOULDBLOCK:
raise ty, v
def tcp(q, where, timeout=None, port=53, af=socket.AF_INET):