Connection stability
This commit is contained in:
@@ -221,6 +221,7 @@ namespace pipedal
|
||||
public:
|
||||
~WebSocketSession()
|
||||
{
|
||||
Lv2Log::info("WebSocketSession closed.");
|
||||
}
|
||||
using ptr = std::shared_ptr<WebSocketSession>;
|
||||
WebSocketSession(BeastServerImpl *pServer, server::connection_ptr &webSocket)
|
||||
@@ -230,6 +231,8 @@ namespace pipedal
|
||||
uri requestUri(webSocket->get_uri()->str().c_str());
|
||||
fromAddress = SS(webSocket->get_socket().remote_endpoint());
|
||||
|
||||
Lv2Log::info(SS("WebSocketSession opened. (" << fromAddress << ")"));
|
||||
|
||||
|
||||
auto pFactory = pServer->GetSocketFactory(requestUri);
|
||||
if (!pFactory)
|
||||
@@ -568,6 +571,7 @@ namespace pipedal
|
||||
|
||||
void on_fail(connection_hdl hdl)
|
||||
{
|
||||
m_connections.erase(hdl);
|
||||
}
|
||||
void on_close(connection_hdl hdl)
|
||||
{
|
||||
|
||||
@@ -436,7 +436,7 @@ void pipedal::SetWifiDirectConfig(const WifiDirectConfigSettings &settings)
|
||||
// dhcpcd.conf:
|
||||
// ======
|
||||
// interface p2p-wlan0-0
|
||||
// static ip_address=172.24.0.1/16
|
||||
// static ip_address=172.24.0.1/24
|
||||
// domain_name_server=172.24.0.1
|
||||
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@ ExecStart=${COMMAND} --systemd --log-level debug
|
||||
Type=notify
|
||||
WorkingDirectory=/var/pipedal
|
||||
TimeoutStopSec=5
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user