Fix: keep the in-process test client alive on compression switch
Switching wire compression used to set g_bExit = S_CLIENT_UPDATE and disconnect. Standalone clients restart fine, but the in-process test client (ServerDll loaded with MemoryModule) only restarts AutoRun on S_SERVER_EXIT; S_CLIENT_UPDATE made TestRun return and AutoRun exit, so the host went offline for good and the "Run Test Program" menu stayed disabled. The command handler now disconnects and calls IOCPClient::SetWireCompression() on the existing connection object. The reconnect loop reuses it with the new mode; sub-connections are rebuilt from the saved config after the main link reconnects. g_bExit is no longer touched. The experimental menu gains two 16x16 icons (blue Z for zstd, orange L for zlib) and grays the algorithm the selected hosts already use (all-zstd grays ZSTD, all-zlib grays ZLIB, mixed leaves both enabled, unsupported clients gray both). The new strings are translated in the en_US, de_DE and zh_TW packs (the German pack also gained the missing "Experimental" group title). Verified: with an isolated Debug server, the in-process test client switches zstd -> zlib -> zstd, reconnects in about 3 s each time and keeps receiving MasterSettings; the menu reports the expected gray state and icons in a captured screenshot. Co-Authored-By: deepseek-flash
This commit was merged in pull request #9.
This commit is contained in:
1 parent
0e20e0bbdb
commit
e6a3255a2b
13 files changed
+74
-17
No files matched your search
@@ -2180,6 +2180,9 @@ TLS
|
||||
证书/私钥加载失败,加密功能未生效。请检查文件路径与格式(证书 PEM、私钥 PKCS#8)。=憑證/私鑰載入失敗,加密功能未生效。請檢查檔案路徑與格式(憑證 PEM、私鑰 PKCS#8)。
|
||||
TLS传输=TLS 傳輸
|
||||
取消TLS=停用 TLS
|
||||
线缆压缩:ZSTD=線纜壓縮:ZSTD
|
||||
线缆压缩:ZLIB=線纜壓縮:ZLIB
|
||||
选中的主机里有客户端版本不支持线缆压缩切换(需要新版 Windows 客户端)=選取的主機中有用戶端版本不支援線纜壓縮切換(需要新版 Windows 用戶端)
|
||||
确定对选中主机启用 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=確定對選取主機啟用 TLS 傳輸嗎?\n(用戶端立即生效並斷線重連,正在進行的遠端工作階段會中斷)
|
||||
确定取消选中主机的 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=確定取消選取主機的 TLS 傳輸嗎?\n(用戶端立即生效並斷線重連,正在進行的遠端工作階段會中斷)
|
||||
服务端未启用 TLS 证书,无法切换客户端 TLS 传输=伺服器未啟用 TLS 憑證,無法切換用戶端 TLS 傳輸
|
||||
|
||||
Reference in new issue
Block a user