Patch to fix socket problem in python running native under windows
This commit is contained in:
16
installer/dnspython-1.2.0.win32.patch
Normal file
16
installer/dnspython-1.2.0.win32.patch
Normal 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):
|
||||
Reference in New Issue
Block a user