From c2722411bcf723276acfa8e1a21de01f46e123fb Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 12 Aug 2013 16:29:06 -0400 Subject: [PATCH] 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 --- swift/container/updater.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swift/container/updater.py b/swift/container/updater.py index f0962404c4..bdc1696ec7 100644 --- a/swift/container/updater.py +++ b/swift/container/updater.py @@ -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()