diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-11-30 20:00:43 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-11-30 20:00:43 +0000 |
commit | a170caa870dbb7ae90e5df6ad532d968f9e15b86 (patch) | |
tree | e9708ee2ae8fa790a93789e6bdaa4ede160ffe8a | |
parent | d2026cc75e486a32bd6604d4aa059f3a218e5e3d (diff) | |
parent | 3bf88e6ada0fd5a521f870cfb361a5fda8bf06f1 (diff) | |
download | designate-a170caa870dbb7ae90e5df6ad532d968f9e15b86.tar.gz |
Merge "Correct a possible DNSService connection leak" into stable/kilo
-rw-r--r-- | designate/service.py | 9 |
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 |