In the OpenSSL network, it seems to me that currently the network is not properly cleaned up if the initial connect should time out, causing the CoAP client to hang. This PR adjusts the connect behavior, calling close if a timeout should happen and rethrowing the TimeoutException.
In the OpenSSL network, it seems to me that currently the network is not properly cleaned up if the initial connect should time out, causing the CoAP client to hang. This PR adjusts the connect behavior, calling
close
if a timeout should happen and rethrowing theTimeoutException
.