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

net: lib: http_server: Respect Connection close header



In case no "Connection: close" header is present in the request, the
server should keep the connection open for the client. Hence, after
serving a request, we need to check if the header was present (the
parser sets a flag for it), and only close the connection immediately,
if the client requested it. In case the client remains silent, the
connection will be closed anyway after the inactivity timer kicks in.

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