def clientConnectionFailed(self, connector, reason):
        logging.debug("Client:%s Server connection failed." % (self.client.getClientIP()))

        destination = connector.getDestination()

        if (destination.port != 443):
            logging.debug("Client:%s Retrying via SSL" % (self.client.getClientIP()))
            self.client.proxyViaSSL(self.headers['host'], self.command, self.uri, self.postData, self.headers, 443)
        else:
            self.client.finish()
dataset/ETHPy150Open sensepost/Snoopy/snoopy/server/bin/sslstripSnoopy/build/lib.linux-i686-2.7/sslstrip/ServerConnectionFactory.py/ServerConnectionFactory.clientConnectionFailed/original