Skip to content
Commit fb0ca165 authored by Declan Snyder's avatar Declan Snyder Committed by Chris Friedt
Browse files

samples: net: sockets: http_server: Dont block system workq



Since the netstats handler calls on functions which reach deep into the
networking stack, there is a lot of points actually at which it can be
blocked, even forever. So having this handler on the system workqueue is
not a good idea and can even cause a deadlock in some cases if it's
blocked waiting on a synchronization primitive that would be given by a
work item scheduled later in the queue. Therefore, make a workqueue
specifically for this http server socket instead of using the system
one.

Signed-off-by: default avatarDeclan Snyder <declan.snyder@nxp.com>
parent 1187e172
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment