mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Added replication, Added clean stops, logs and releases (0.2.0)
Step 11: the servers replicate by name (push_to and accept_from), their messages and attachments, damaged copies asked for again. Step 12: the server stops cleanly on SIGTERM/SIGINT (Ctrl+C, Ctrl+Break and the console closing on Windows), committing what was queued; logs go to the console, BAKASHROT_LOG sets the level. release.py builds a release per platform (the programs, the DLL, a Python wheel with the library, THIRD-PARTY.txt) and smoke-tests it; CI runs it on v* tags. Built for size (opt-level "s"): 25-31% smaller. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -135,7 +135,7 @@ Replicating P: SyncStateRequest S: SyncState
|
||||
client asks again `from_part` the next one it needs.
|
||||
- **Replication:** `SyncState` is all a check-in needs. The peer compares
|
||||
it with what it has, by name, sends the messages the server lacks in
|
||||
batches of up to `PeerBatchSize` (about 64 KiB, a bigger
|
||||
batches of up to `batch_size` messages and about 1 MiB (a bigger
|
||||
message alone), then the attachments it listed.
|
||||
|
||||
## Rules
|
||||
|
||||
Reference in New Issue
Block a user