perf: accept thread + dial backoff; join/peers.json (0.9.23)

Run inbound peer handling on its own thread so outbound dials cannot starve
:9100. Failed peers cool down exponentially. Also land --join (member seat)
and realm/peers.json seed discovery for Tailscale meshes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WHC
2026-10-29 18:16:46 +08:00
co-authored by Cursor
parent de2eaf87f7
commit c329db504d
7 changed files with 273 additions and 37 deletions
+4
View File
@@ -15,6 +15,10 @@ int cst_parliament_cli_login(const char *password, const char *instance_id,
int cst_parliament_cli_login_and_serve(const char *password,
const char *instance_id,
const char *device_label, int peer_port);
/* Join as member seat (no chair steal) then start background service. */
int cst_parliament_cli_join_and_serve(const char *password,
const char *instance_id,
const char *device_label, int peer_port);
int cst_parliament_cli_service(const char *password, const char *instance_id,
int peer_port, int foreground);
int cst_parliament_cli_service_stop(void);
+1 -1
View File
@@ -3,7 +3,7 @@
#define CST_VERSION_MAJOR 0
#define CST_VERSION_MINOR 9
#define CST_VERSION_PATCH 22
#define CST_VERSION_PATCH 23
#define CST_VERSION_STR_(x) #x
#define CST_VERSION_STR(x) CST_VERSION_STR_(x)