1
0
mirror of https://github.com/aziascreations/BakaShrot.git synced 2026-11-23 20:58:46 +01:00

Protocol 6: node identities, error codes, Synchronous, schema v8, examples

- Protocol 5: a client authenticates as a node (Node), its pushes go to the
  section's DefaultTopic unless they name one; old Identities refused at
  start with what to write instead.
- Topics listed by name, ids picked and kept by the server; nodes come from
  client sections, [BakaShrot.Nodes] optional, AcceptNodes = * by default.
- Protocol 6: every refusal carries a code, every client failure too
  (BakaShrot_ErrorCodes.pbi, BakaShrot_GetLastError(), ErrorCode in Python);
  nothing reconnects by itself, delivery is at least once.
- [BakaShrot.Server] Synchronous = FULL (default) or NORMAL, benchmarked.
- Schema v8: browse table and browse_messages view for database tools.
- Tools renamed BakaShrot<Name>, wait for Enter when started from Explorer.
- Examples/SingleServer: a server and a client with scripts (example keys,
  public on purpose).
- Restart-Test.ps1: servers killed mid-traffic and mid-catch-up.
- Docs: one server per node rule, DatabaseError() checked per thread,
  release notes' Compatibility section, Notes "Right now".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RwFeVQrLqMQPw9AZnsHqQH
This commit is contained in:
2026-11-09 23:57:55 +01:00
parent df61ef9719
commit 488ffe4bc8
67 changed files with 3163 additions and 1029 deletions
+11 -5
View File
@@ -7,12 +7,18 @@ behind on, with their original ids. Each peer does the same over its own link.
Issues below are roughly ordered by how much they matter.
## 1. Drift: the same message id with different content (accepted for now)
## 1. Drift: the same message id with different content (ruled out by config)
**When:** the same topic/node id is written to on two servers, for example
when a client identity is registered on both and pushes to each while they
can't reach each other. This is a configuration issue that """shouldn't"""
happen in real use.
**The rule: a node pushes to one server.** Each client node has its
`[BakaShrot.Client.<name>]` section (its `Node`) on one server only, the
one it pushes to; the other servers get its messages by replication. Then
every topic/node pair has a single writer and this can't happen. Reading
from any server is fine, only pushing matters. Breaking the rule isn't
detected: it's the config's to keep.
**When it would happen:** the same topic/node id written to on two
servers, for example a client node registered on both, pushing to each
while they can't reach each other.
**What happens:** both servers are at `1:2#1`, the link drops, then: