On Fri, Mar 28, 2014 at 9:37 AM, Daniel Stenberg <[email protected]> wrote:
> 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.html > Thanks, Using the CURLOPT_FORBID_REUSE option does exactly what I was looking for. Tony
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
