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
+10 -1
View File
@@ -126,7 +126,11 @@ otherwise:
it's behind, the messages after its
last id, `batch_size` (1000) at a time and about 1 MiB at most (a
bigger one alone), each batch answered before the next. A refusal
leaves that topic and node for the next check-in.
leaves that topic and node for the next check-in. Those its roles
here may be sent but it doesn't take (not in its roles' `accept_*`
there) are skipped and warned about (2026-11-21), the first ten
named: once per link, again only when they change, and "takes
everything" once none are left. Not at every check-in: it would spam.
3. **The attachments it lacks:** those this server has ready, from the
part it needs. One it says doesn't match its SHA-256 is read back
here: damaged (a disk, a bug), this server's copy is dropped and asked
@@ -394,6 +398,11 @@ each:
first part going on from the second (the first read back for the
SHA-256), one not matching refused and asked for from the start, a
certificate whose roles take nothing refused;
- replication not taken (the server's log captured): a topic the peer
doesn't take warned about once over several check-ins and not sent,
warned again, both named, when another node pushes to it
(`replication_not_taken_is_warned`; `push_to.rs`'s
`heads_sent_and_not_taken` for what's sent and what's named);
- two peers, one attachment (two raw connections): the second refused
while the first sends it (names in any case), the first finishing it;
one gone partway, the other going on from there; one whole but never