yuanyuanxiang and deepseek-flash
9fadb58c76
Fix(client): rotate HELL header encoding across reconnects
...
A Release client drew one of the twelve HELL header encodings in the
constructor and kept it for life. The Go fallback server latches a type
from the first packet and only decodes None..V6, so every client that
drew V7..V10 could never log in to it — a third of them, at random, for
good.
The main connection now advances to the next type when it reconnects
after a connection that was never login-acked (CMD_MASTERSETTING), and
republishes the accepted type into CONNECT_ADDRESS::szFuture. A type that
did log in is kept, so a healthy client no longer churns through values
the fallback would reject. Sub-connections, including one-shot ones
(file/process/screen), inherit the published value at construction and
on every reconnect instead of rolling their own dice. Debug keeps its
None..V6-only range; the initial Release type now comes from
random_device rather than time() % N, which handed a whole batch started
in the same second the same value.
The slot sits at szFuture+16, after LOCAL_TEST_CLIENT_MAGIC, guarded by
static_asserts; it is memory-only and never persisted or sent. Swapping
the encoder is a single atomic function-pointer store, so the send and
receive threads see either the old or the new encoder and never a
dropped object.
Co-Authored-By: deepseek-flash
2026-11-13 16:47:53 +01:00
..
2026-04-19 22:55:21 +02:00
2026-10-25 14:05:25 +01:00
2026-06-05 00:05:13 +02:00
2026-04-19 22:55:21 +02:00
2026-10-05 10:41:04 +02:00
2026-08-15 11:09:14 +02:00
2026-08-15 11:09:14 +02:00
2026-08-21 19:50:11 +02:00
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-06-06 13:02:29 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-10-13 17:05:37 +02:00
2026-04-19 22:55:21 +02:00
2026-05-30 00:12:38 +02:00
2026-05-30 00:12:38 +02:00
2026-10-30 11:04:44 +01:00
2026-05-30 00:12:38 +02:00
2026-10-23 11:19:21 +02:00
2026-10-25 14:57:47 +01:00
2026-10-04 19:55:29 +02:00
2026-04-19 22:55:21 +02:00
2026-10-30 17:22:36 +01:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-04-19 22:55:21 +02:00
2026-11-13 16:47:53 +01:00
2026-11-02 14:01:39 +01:00
2026-07-13 19:02:25 +02:00
2026-07-13 19:02:25 +02:00
2026-04-19 22:55:21 +02:00
2026-11-10 15:09:24 +01:00
2026-11-10 15:09:24 +01:00
2026-10-20 21:15:45 +02:00
2026-10-04 18:23:06 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-05-09 23:13:24 +02:00
2026-11-01 20:40:02 +01:00
2026-10-05 10:52:58 +02:00
2026-10-05 10:52:58 +02:00
2026-04-19 22:55:21 +02:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-11-07 14:11:47 +01:00
2026-11-04 14:47:40 +01:00
2026-04-19 22:55:21 +02:00
2026-10-25 17:59:17 +01:00
2026-10-25 17:59:17 +01:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-04-19 22:55:21 +02:00
2026-10-23 11:19:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-13 16:47:53 +01:00
2026-11-13 16:47:53 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-24 22:31:14 +02:00
2026-04-19 22:55:21 +02:00
2026-11-13 16:47:53 +01:00
2026-10-30 22:36:01 +01:00
2026-10-25 02:22:17 +02:00
2026-06-05 00:05:13 +02:00
2026-05-06 19:29:02 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-08 21:49:20 +01:00
2026-11-01 20:40:02 +01:00
2026-11-10 15:09:24 +01:00
2026-10-20 21:48:13 +02:00
2026-11-06 17:17:18 +01:00
2026-10-30 22:36:01 +01:00
2026-10-30 22:36:01 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-05-11 20:22:07 +02:00
2026-10-20 13:12:16 +02:00
2026-10-20 13:12:16 +02:00
2026-10-25 17:59:17 +01:00
2026-06-05 00:05:13 +02:00
2026-10-25 17:59:17 +01:00
2026-10-25 17:59:17 +01:00
2026-04-19 22:55:21 +02:00
2026-10-04 19:55:29 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-10 08:21:55 +01:00
2026-11-08 20:44:49 +01:00
2026-11-10 08:21:55 +01:00
2026-11-09 18:11:37 +01:00
2026-11-10 16:34:10 +01:00
2026-11-10 16:34:10 +01:00
2026-11-10 08:21:55 +01:00
2026-11-10 08:21:55 +01:00
2026-10-31 18:24:54 +01:00
2026-04-19 22:55:21 +02:00
2026-10-25 17:59:17 +01:00
2026-10-25 17:59:17 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-29 22:49:30 +02:00
2026-06-29 22:49:30 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-08-21 19:50:11 +02:00
2026-06-05 00:05:13 +02:00
2026-05-08 12:39:59 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-10 15:09:24 +01:00
2026-06-05 00:05:13 +02:00
2026-10-23 12:22:44 +02:00
2026-10-23 12:22:44 +02:00
2026-06-05 00:05:13 +02:00
2026-10-30 23:39:05 +01:00
2026-06-29 22:49:30 +02:00
2026-04-19 22:55:21 +02:00
2026-10-31 18:24:54 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-01 20:40:02 +01:00
2026-11-11 11:56:32 +01:00
2026-11-11 11:56:32 +01:00
2026-04-19 22:55:21 +02:00
2026-11-04 14:47:40 +01:00
2026-10-13 17:05:37 +02:00
2026-10-13 17:05:37 +02:00
2026-10-30 19:15:14 +01:00
2026-11-07 14:11:47 +01:00
2026-11-04 14:47:40 +01:00
2026-10-04 21:03:03 +02:00