parameters: (self)
docstring: Close the connection to the HTTP server.
docstring_summary: Close the connection to the HTTP server.
docstring_tokens: Close the connection to the HTTP server .
function: def close(self):
          """Close the connection to the HTTP server."""
          if self.sock:
              self.sock.close()   # close it manually... there may be other refs
              self.sock = None
          if self.__response:
              self.__response.close()
              self.__response = None
          self.__state = _CS_IDLE
function_tokens: def close ( self ) : if self . sock : self . sock . close ( ) # close it manually... there may be other refs self . sock = None if self . __response : self . __response . close ( ) self . __response = None self . __state = _CS_IDLE