Skip to content
Commit a7545813 authored by Michael Scott's avatar Michael Scott Committed by Anas Nashif
Browse files

net: lib: app: trigger TLS closure when connection is closed



When testing TLS connections on production web server, it was noticed
that the TLS mainloop was getting "hung" after a connection was made
via HTTPS and then closed by the server.  The TLS mainloop was never
being notified that the connection was closed and was stuck waiting
for more data.

The next time that connection was used, TLS would fail to start.

Let's force trigger a closure of the TLS process when the net-app layer
is notified of the connection closure.  This allows the connection to
be successfully reused later.

Signed-off-by: default avatarMichael Scott <michael@opensourcefoundries.com>
parent e63a7816
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment