I found this method for rustls
crate:
but can't for native-tls
maybe, I forgot about some feature
just? without sending this signal, my client application warns me about TLS connection closed unexpectedly
Thanks for any ideas!
I found this method for rustls
crate:
but can't for native-tls
maybe, I forgot about some feature
just? without sending this signal, my client application warns me about TLS connection closed unexpectedly
Thanks for any ideas!
You are probably looking for shutdown()
.
Thank you much, I've tried it before but maybe called this method on the wrong step.
In my recent app implementation it's finally work!
Just should I execute it before flush
method or after?
If OpenSSL has a sane API design for this I would expect shutdown to implicitly call flush, but I don't know if OpenSSL actually does that, so just to be safe you can call flush before shutdown.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.