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
@@ -299,6 +299,8 @@
|
||||
#define IDB_BITMAP_DISCLAIMER 415
|
||||
#define IDB_BITMAP_COPYNAME 416
|
||||
#define IDB_BITMAP_RUN_TEST 417
|
||||
#define IDB_BITMAP_COMPRESS_ZSTD 418
|
||||
#define IDB_BITMAP_COMPRESS_ZLIB 419
|
||||
#define IDC_MESSAGE 1000
|
||||
#define IDC_ONLINE 1001
|
||||
#define IDC_STATIC_TIPS 1002
|
||||
@@ -1133,7 +1135,7 @@
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 418
|
||||
#define _APS_NEXT_RESOURCE_VALUE 420
|
||||
#define _APS_NEXT_COMMAND_VALUE 33109
|
||||
#define _APS_NEXT_CONTROL_VALUE 2621
|
||||
#define _APS_NEXT_SYMED_VALUE 105
|
||||
|
||||
Reference in new issue
Block a user