Skip to content

Commit

Permalink
Merge "Correct a possible DNSService connection leak" into stable/kilo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Nov 30, 2015
2 parents d2026cc + 3bf88e6 commit a170caa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions designate/service.py
Expand Up @@ -366,15 +366,16 @@ def _dns_handle(self, addr, payload, client=None):
# 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


Expand Down

0 comments on commit a170caa

Please sign in to comment.