curl-library
RE: POP3 not using same connection for multiple requests when using starttls
Date: Sun, 13 Nov 2011 18:55:38 +0000
Hi Again,
> > I'm not sure if I am missing something here... but are you saying that
> > if the programmer specifies SSL and they attempt to do the following:
>
> I'm saying this:
>
> If USE_SSL is NONE then pop3:// connections can only re-use other
> connections that didn't use SSL.
>
> If USE_SSL != NONE, then the pop3:// connection should only re-use
> other connections that use SSL.
Sorry if I'm being a bit slow here but I'm sure you'll appreciate it is
quite difficult to grasp what others are saying via email sometimes. Can we
go over some scenarios to see if I have understood you correctly:
Scenario 1 - No SSL
CURL* curl = curl_easy_init(); //
Initialise curl
curl_easy_perform("pop3://mail.domain.com"); // This will connect
via a normal connection as #0
curl_easy_perform("pop3://mail.domain.com/1"); // This should reuse
connection #0
curl_easy_perform("pop3://mail.domain.com/2"); // So should this
Scenario 2 - SSL
CURL* curl = curl_easy_init(); //
Initialise curl
curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_TRY); // Use SSL
if available
curl_easy_perform("pop3://mail.domain.com"); // This will create
connection #0 and upgrade via TLS if server supports it
curl_easy_perform("pop3://mail.domain.com/1"); // This should reuse
connection #0
curl_easy_perform("pop3://mail.domain.com/2"); // and this
Scenario 3 - No SSL and then SSL
CURL* curl = curl_easy_init();
curl_easy_perform("pop3://mail.domain.com"); // This will connect
via a normal connection as #0
curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_TRY); // Use SSL
if available
curl_easy_perform("pop3://mail.domain.com/1"); // This will create
connection #1 and upgrade via TLS if server supports it
curl_easy_perform("pop3://mail.domain.com/2"); // This will reuse
connection #1
Kind Regards
Steve
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-13