mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
fix: recover from silent network drops on both sides of the gateway
Measured with relays that blackhole traffic: - Gateway to TS server: tsclientlib reconnects on its own after a timeout or server restart, but the connector ignored that, so the browser got no notice and the new session stayed unsubscribed - everyone but us vanished from the tree. The connector now emits "reconnecting"/"reconnected", resubscribes, and pauses the server-variable poll meanwhile; the page logs both. - Browser to gateway: a network that dies silently never closed the socket on the page, which kept showing "connected" indefinitely. The gateway now sends an app-level keepalive every 20 s (announced as "keepalive" in hello), and a socket quiet for 50 s is handled as dropped and reconnected. - Coming back online skips any remaining reconnect backoff. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
23e61c86b3
commit
12e482b223
8 files changed
+81
-4
No files matched your search
@@ -659,6 +659,8 @@
|
||||
"tabs.closeTab": "Tab schließen: {label}",
|
||||
"identity.importInvalid": "„{file}“ ist keine gültige Identitätsdatei.",
|
||||
"log.fileTransferFailed": "Dateiübertragung fehlgeschlagen:",
|
||||
"log.serverReconnecting": "Verbindung zum Server verloren, verbinde neu…",
|
||||
"log.serverReconnected": "Wieder mit dem Server verbunden",
|
||||
"log.fileTransferInvalidAddress": "Dateiübertragung fehlgeschlagen (ungültige Adresse)",
|
||||
"sounds.importFailed": "Das Soundpack konnte nicht gelesen werden – ist es eine gültige .ts3soundpack-/ZIP-Datei?",
|
||||
"tabs.connections": "Server-Verbindungen",
|
||||
|
||||
@@ -659,6 +659,8 @@
|
||||
"tabs.closeTab": "Close tab: {label}",
|
||||
"identity.importInvalid": "\"{file}\" is not a valid identity file.",
|
||||
"log.fileTransferFailed": "File transfer failed:",
|
||||
"log.serverReconnecting": "Connection to the server lost, reconnecting…",
|
||||
"log.serverReconnected": "Reconnected to the server",
|
||||
"log.fileTransferInvalidAddress": "File transfer failed (invalid address)",
|
||||
"sounds.importFailed": "Could not read this soundpack - is it a valid .ts3soundpack/ZIP file?",
|
||||
"tabs.connections": "Server connections",
|
||||
|
||||
@@ -658,6 +658,8 @@
|
||||
"tabs.closeTab": "بستن زبانه: {label}",
|
||||
"identity.importInvalid": "«{file}» یک فایل هویت معتبر نیست.",
|
||||
"log.fileTransferFailed": "انتقال فایل ناموفق بود:",
|
||||
"log.serverReconnecting": "اتصال به سرور قطع شد، در حال اتصال دوباره…",
|
||||
"log.serverReconnected": "دوباره به سرور متصل شد",
|
||||
"log.fileTransferInvalidAddress": "انتقال فایل ناموفق بود (نشانی نامعتبر)",
|
||||
"sounds.importFailed": "این بسته صدا خوانده نشد - آیا یک فایل .ts3soundpack/ZIP معتبر است؟",
|
||||
"tabs.connections": "اتصالهای سرور",
|
||||
|
||||
@@ -658,6 +658,8 @@
|
||||
"tabs.closeTab": "关闭标签页:{label}",
|
||||
"identity.importInvalid": "“{file}”不是有效的身份文件。",
|
||||
"log.fileTransferFailed": "文件传输失败:",
|
||||
"log.serverReconnecting": "与服务器的连接已断开,正在重新连接…",
|
||||
"log.serverReconnected": "已重新连接到服务器",
|
||||
"log.fileTransferInvalidAddress": "文件传输失败(地址无效)",
|
||||
"sounds.importFailed": "无法读取此音效包——它是有效的 .ts3soundpack/ZIP 文件吗?",
|
||||
"tabs.connections": "服务器连接",
|
||||
|
||||
Reference in new issue
Block a user