diff options
| author | Bob Halley <halley@nominum.com> | 2009-07-27 09:26:09 +0200 |
|---|---|---|
| committer | Bob Halley <halley@nominum.com> | 2009-07-27 09:26:09 +0200 |
| commit | dfb195842817670ee3eadf732456aa2e4c87aa73 (patch) | |
| tree | f41ee815cec1b5d87a45fcd596fd342a015bb633 /dns | |
| parent | 9b72d6bce1c6f85d8f8c341f5a206d8ed4f10b0f (diff) | |
| download | dnspython-dfb195842817670ee3eadf732456aa2e4c87aa73.tar.gz | |
Set the socket used for xfrs to nonblocking mode.
Diffstat (limited to 'dns')
| -rw-r--r-- | dns/query.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dns/query.py b/dns/query.py index 15b5a90..09e39d5 100644 --- a/dns/query.py +++ b/dns/query.py @@ -336,6 +336,7 @@ def xfr(where, zone, rdtype=dns.rdatatype.AXFR, rdclass=dns.rdataclass.IN, s = socket.socket(af, socket.SOCK_DGRAM, 0) else: s = socket.socket(af, socket.SOCK_STREAM, 0) + s.setblocking(0) if source is not None: s.bind(source) expiration = _compute_expiration(lifetime) |
