Make lws_create_context() to fail if unable to bind 71/264871/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Fri, 1 Oct 2021 10:07:20 +0000 (19:07 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 1 Oct 2021 10:12:51 +0000 (19:12 +0900)
commit9834397a3d3c0c8edb7310dd07ae6a1d1eba3061
treeeeafdecb7ad3ccb9df4fe4e131ed60671c96574f
parent20d9f9d2e1398b589320434dab81c6e8e293e113
Make lws_create_context() to fail if unable to bind

If libwebsocket fails to bind as shown below, the lws_context
should not be created at all in order to retry again.

websocket.cpp: log_func(389) > LEVEL : 1 , ERROR on binding fd 103 to port 7681 (-1 98)
websocket.cpp: log_func(389) > LEVEL : 1 , VH default: iface (null) port 7681 DOESN'T EXIST

Change-Id: I781420d4ed5c3daef01a9e4b05acf2024f2b9683
src/legacy_support/websocket.cpp