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

Warned about names a peer doesn't take, Refused a NUL in Python's strings

- Replication: what a link's roles here may send but the peer doesn't
  take (not in its roles' accept_* there) is skipped as before, and now
  logged as a warning (the first ten "topic:node" named) once per link,
  again only when that changes.
- Python: every string going to the DLL as a C string (a message, a
  name, SQL, a path) with a NUL is refused (INVALID_ARGUMENT) rather
  than cut there, as C# already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-21 12:38:56 +01:00
parent 1bae8ee182
commit fda21a986b
7 changed files with 261 additions and 39 deletions
+2
View File
@@ -165,6 +165,8 @@ connecting or while connected),
`list_topics()` / `list_nodes()` (names; `topic=` and `node=`, a name or
a pattern each, filter them: `list_topics(node="kitchen")` the topics
kitchen pushed to), `query()` / `query_raw()`.
Strings go to the DLL as UTF-8 C strings: one with a NUL (a message, a
name, SQL, a path) is refused (`INVALID_ARGUMENT`) rather than cut there.
Each `Client` has its own client in the DLL: several can be connected at
once, from any threads.
Errors: `RefusedError`, `ConnectionLostError`, `AuthError` (a certificate