Select proper vhost when connecting with a client 65/259365/6
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 7 Jun 2021 01:09:58 +0000 (10:09 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 9 Jun 2021 10:54:44 +0000 (19:54 +0900)
commit5464dc81d12b0eb8515c0292de59a078553a80b6
tree877c24f89400f46cb906a2933f5366b2e9a4686c
parent988757b04949e7ce68b44de5ac4ada342ef30fa7
Select proper vhost when connecting with a client

[problem]
Sometimes, Segfault occurs when pubsub open/close repeatedly
for the same port.

[cause]
libwebsockets doesn't close the vhost and a listen socket immediately
eventhough a vine requests it.
After then, if the accept event occurs, libwebsockets returns old vhost
which has the same listen port from the vhost_list.

Change-Id: Ieded5f672b077939a126764b99ef1f052a01461b
packaging/capi-network-vine.spec
plugins/libwebsockets/libwebsockets-plugin.cpp
src/include/vine-data-path-plugin.h
src/include/vine-data-path.h
src/include/vine-set.h [new file with mode: 0755]
src/vine-data-path.cpp
src/vine-dp.cpp
tests/vine-test/vine-pubsub-open-close-test.cpp