<div dir="ltr"><div class="gmail-gs" style="margin:0px;padding:0px 0px 20px;width:1048px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-"><div id="gmail-:1tt" class="gmail-ii gmail-gt" style="font-size:0.875rem;direction:ltr;margin:8px 0px 0px;padding:0px"><div id="gmail-:1ts" class="gmail-a3s gmail-aiL gmail-adM" style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif"><div class="gmail-HOEnZb"><div class="gmail-im" style="color:rgb(80,0,80)"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Hi,<br></div><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><br></div><div>I have been trying to implement TLS using OpenSSL libraries in C++. I was able to successfully connect to a TLS server.</div><div><br></div><div>But our software requires it to disconnect and reconnect if i use the reconnect option . It doesn't reconnect well after the 2nd attempt . Is there any generalised code available in C++ to check whether i have deallocated resources well before reconnecting coz i am guessing that should be the problem.</div><div><br></div><div>Thanks much in advance</div><div><br></div><div>Ompushkaradeep<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="gmail-hi" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px;padding:0px;width:auto;background:rgb(242,242,242);margin:0px"></div></div></div><br class="gmail-Apple-interchange-newline"></div>