Skip to content
Commit fc10a946 authored by Robert Lubos's avatar Robert Lubos Committed by Anas Nashif
Browse files

net: lib: http_server: Close sockets on server core errors



In case of fatal errors (during poll() or when handling listening
socket), the server operation is restarted. It was missed however, that
sockets opened for the server should be closed in such case.

Additionally, in case there were active client connections, it's needed
to cleanup related resources, otherwise running timers may trigger a
crash.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 52fabbfd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment