(self)
Close the connection to the HTTP server.
Close the connection to the HTTP server.
Close the connection to the HTTP server .
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
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