A number of things can cause delay if you have a busy port 80.  If you have set the service to listen at 80 rather than 443 perhaps it will be faster, but if you also have other things such as Apache serving 100 virtual servers on that same port this could be rather slow.

 

My first question in your position would be: What else is listening at port 80? 

 

-----Original Message-----
From: Sharkey, Aoife [mailto:[EMAIL PROTECTED]]
Sent:
Monday, March 25, 2002 8:58 AM
To: '[EMAIL PROTECTED]'
Subject: Will HTTPS ever use port 80

 

 

Hi folks,

 

URL example:

 

If I specify port 80 in the URL the SSL_Connect takes a long time to return the response,

The server is using port 443 for SSL connections but I want to able to check against port 80 in case it's ever changed to port 80

 

what is the delay with HTTPS and port 80, why dosen't it return a faster response?

 

 

        BCGconnection->ctx= ::initialize_ctx();
        BCGconnection->ssl=SSL_new(BCGconnection->ctx);
        BCGconnection->sbio=BIO_new_socket(BCGconnection->sock,BIO_NOCLOSE);
        SSL_set_bio(BCGconnection->ssl,BCGconnection->sbio,BCGconnection->sbio);
     ret = SSL_connect(BCGconnection->ssl);
     int errorcode = SSL_get_error(BCGconnection->ssl, ret);
        if(ret <= 0)
        {
            MTWarning(("Error with SSL connection using Hostname--%s PortNumber--%d! ErrorCode = %d. Verify URL and PortNumber in configfile.")) 
            *status = STATUS_UNSPECIFIED_ERROR;
            delete connection;
            return  NULL;
        }
        else
        {
            Debug(1, ("SSL Connection Successful! Hostname--%s PortNumber--%d",));
            *status = STATUS_SUCCESS;
            return connection;
        }
  

 

Thanks for your help,

Aoife. 


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

Reply via email to