Make lws_create_context() to fail if unable to bind 72/264872/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:13:10 +0000 (19:13 +0900)
commit1f0cfd3bbc7a45e68f51b60ab02979af7d2a68d3
treebe930a370a71175e7604c780c58d59c546878f65
parent87e013fe8fc36d06d1992623c0567a77eb71554e
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