wolfSSL / wolfMQTT

wolfMQTT is a small, fast, portable MQTT client implementation, including support for TLS 1.3.
https://www.wolfssl.com
GNU General Public License v2.0
518 stars 156 forks source link

Close socket on error in NetConnect #375

Closed embhorn closed 7 months ago

embhorn commented 7 months ago

Socket opened during NetConnect should be closed if there was an error during SOCK_CONNECT (except MQTT_CODE_CONTINUE)

embhorn commented 7 months ago

@efieleke-tausight

Interesting, yes, I changed it to use the existing disconnect which checks for a valid socket descriptor.