mirror of
https://github.com/streamwall/streamwall.git
synced 2026-04-03 12:22:09 -04:00
Forcibly disconnect on ping timeout
This commit is contained in:
@@ -177,7 +177,7 @@ async function initApp({ baseURL, clientStaticPath }: AppOptions) {
|
||||
console.warn(
|
||||
`Streamwall timeout: no pong within ${STREAMWALL_PING_TIMEOUT_MS}ms. Closing connection.`,
|
||||
)
|
||||
ws.close()
|
||||
ws.terminate()
|
||||
}
|
||||
}, STREAMWALL_PING_TIMEOUT_MS)
|
||||
ws.once('pong', () => {
|
||||
|
||||
Reference in New Issue
Block a user