Topic: wolfssl_shutdown hanging when terminating dlts 1.0 client connection
I have a wolfssl client that is connecting to a dtls 1.0 server over a UDP connection. I am working on connectivity/stability of the connection, so am doing various things including cable disconnects, server on/off, etc..
During the cleanup, I am calling wolfss_shutdown(ssl) in a while loop, checking the return value for WOLFSSL_SHUTDOWN_NOT_DONE. First time through it returns WOLFSSL_SHUTDOWN_NOT_DONE. Second time it hangs and never exits or returns (or at least not in the first few minutes).
Any suggestions as to what might be happening? Is there some timeout value that I can set?
I'm doing this per the various DTLS examples in github.
Thanks!