Bug #978833: Close https sockets by releasing the _ssl object.
diff --git a/Lib/httplib.py b/Lib/httplib.py
index badaf1a..aee9b0d 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -1117,6 +1117,9 @@
     def __getattr__(self, attr):
         return getattr(self._sock, attr)
 
+    def close(self):
+        SharedSocketClient.close(self)
+        self._ssl = None
 
 class HTTPSConnection(HTTPConnection):
     "This class allows communication via SSL."