summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-11-30 20:00:43 +0000
committerGerrit Code Review <review@openstack.org>2015-11-30 20:00:43 +0000
commita170caa870dbb7ae90e5df6ad532d968f9e15b86 (patch)
treee9708ee2ae8fa790a93789e6bdaa4ede160ffe8a
parentd2026cc75e486a32bd6604d4aa059f3a218e5e3d (diff)
parent3bf88e6ada0fd5a521f870cfb361a5fda8bf06f1 (diff)
downloaddesignate-a170caa870dbb7ae90e5df6ad532d968f9e15b86.tar.gz
Merge "Correct a possible DNSService connection leak" into stable/kilo
-rw-r--r--designate/service.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/designate/service.py b/designate/service.py
index 335c7d86..8ac4e73e 100644
--- a/designate/service.py
+++ b/designate/service.py
@@ -366,15 +366,16 @@ class DNSService(object):
# Handle UDP Responses
self._dns_sock_udp.sendto(response, addr)
- # Close the TCP connection if we have one.
- if client:
- client.close()
-
except Exception:
LOG.exception(_LE("Unhandled exception while processing request "
"from %(host)s:%(port)d") %
{'host': addr[0], 'port': addr[1]})
+ # Close the TCP connection if we have one.
+ if client:
+ client.close()
+
+
_launcher = None