AnsweredAssumed Answered

Trouble After Closing A Socket

Question asked by kackle123 on Jun 14, 2016
Latest reply on Jun 28, 2016 by kackle123


I took the HTTP/web server example of MQX 4.2.2 and added wolfSSL-based, encrypted email to it (multitasking).  However, when the code closes the email socket after sending the SMTP QUIT command, the web server stops functioning, even though the TAD shows no obvious problems.  The bottom of the code looks like this:


ret1 = wolfSSL_shutdown(ssl);



ret2 = wolfSSL_Cleanup();

ret3 = shutdown(socketNumber, FLAG_CLOSE_TX); 


I think it all returns okay:


ret1 = 2, acceptable according to wolfSSL code comment.

ret2 = 1

ret3 = 0


Thank you for your suggestions.