summaryrefslogtreecommitdiff
path: root/indra/llcorehttp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2025-11-25 04:53:48 +0200
committerAndrey Lihatskiy <alihatskiy@productengine.com>2025-11-25 04:53:48 +0200
commit44143786ad54d7ebfee6442a92f1c49ff570e94a (patch)
tree84b608c835ae276dbd037e2fe1376ffb5631b742 /indra/llcorehttp
parent8fb3e99ce01316bcd2e54e3770773a4fdc6f46ec (diff)
parent2c3ce8fb8ce3967d957e13d48627b45dd32f0e00 (diff)
Merge branch 'project/lua_editor' into marchcat/slua-linux
Diffstat (limited to 'indra/llcorehttp')
-rw-r--r--indra/llcorehttp/llwebsocketmgr.cpp26
1 files changed, 20 insertions, 6 deletions
diff --git a/indra/llcorehttp/llwebsocketmgr.cpp b/indra/llcorehttp/llwebsocketmgr.cpp
index addd108b71..ea87d1e07e 100644
--- a/indra/llcorehttp/llwebsocketmgr.cpp
+++ b/indra/llcorehttp/llwebsocketmgr.cpp
@@ -208,15 +208,29 @@ struct Server_impl
void init()
{
mServer.init_asio();
- if (mLocalOnly)
+ try {
+ if (mLocalOnly)
+ {
+ std::stringstream port_str;
+ port_str << mPort;
+ mServer.listen("127.0.0.1", port_str.str());
+ }
+ else
+ {
+ mServer.listen(mPort);
+ }
+ }
+ catch (const websocketpp::exception& e)
{
- std::stringstream port_str;
- port_str << mPort;
- mServer.listen("127.0.0.1", port_str.str());
+ LL_WARNS("WebSocket") << "WebSocket server listen exception: " << e.what() << LL_ENDL;
}
- else
+ catch (const std::exception& e)
+ {
+ LL_WARNS("WebSocket") << "WebSocket server listen std::exception: " << e.what() << LL_ENDL;
+ }
+ catch (...)
{
- mServer.listen(mPort);
+ LL_WARNS("WebSocket") << "WebSocket server listen unknown exception" << LL_ENDL;
}
}