curl-library
Re: SMTP through multi interface
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 28 Mar 2014 15:37:48 +0100 (CET)
Date: Fri, 28 Mar 2014 15:37:48 +0100 (CET)
On Fri, 28 Mar 2014, Anthony Amundson wrote:
> The behavior I am observing is that curl_easy_cleanup is not causing SMTP
> QUIT commands to be sent for SMTP connections. Instead the multi interface
> persists the connections for later use.
Correct. That's indeed by design.
> Is there a way to force the multi interface to send the SMTP QUIT command
> once all pending SMTP transactions are complete? Is there some other
> mechanism that I should be using here?
CURLOPT_FORBID_REUSE on a specific handle will prevent that connection from
being re-used. Although for a normal application the re-use is transparent and
only helps to increase performance for when an existing connection can be
re-used.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-03-28