Always close HTTP connections in the container updater.

This is needed on Pythons (e.g. PyPy) which do not use reference
counting.

Change-Id: Ib75a2e63bdd6b6bc726fb3dbf905d36f427aaf2f
This commit is contained in:
Alex Gaynor 2013-08-12 16:29:06 -04:00
parent 716ad3e07b
commit c2722411bc

View File

@ -296,3 +296,5 @@ class ContainerUpdater(Daemon):
self.logger.exception(
_('Exception with %(ip)s:%(port)s/%(device)s'), node)
return HTTP_INTERNAL_SERVER_ERROR
finally:
conn.close()