shamblett / coap

A Coap package for dart
Other
16 stars 13 forks source link

fix(openssl): clean up network on timeout exception #150

Closed JKRhb closed 1 year ago

JKRhb commented 1 year ago

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.