Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: app: Fix connection closure issues with net_app_ctx
In case of TCP and node acting as a APP_SERVER it can have multiple concurrent connections. Calling close callback when there are still active connections exists, causing an issue. e.g. When a node acting as a HTTP server and can support multiple TCP connections. Let's say one of the connection is in closing state and the rest are still in active state. net_app_ctx is calling close (http_closed) callback of registered upper layers. HTTP assumes all the connections are closed and unref all the connection related stuff. Call the close callback only when there are no active connections. Patch has also moved TCP stuff under one #ifdef. Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
- Loading branch information