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

Removed the PureBasic version, Fixed refused certificates seen as lost connections

OldSource/ is deleted, with its PB-MessagePack submodule: it stays in git
history (up to 68966a8). What of its notes still holds is in
Source/docs/known-issues.md (the threat model, the known limits, ideas
for later); the old Docker image's publishing notes are in revamp.md's
step 13, the wheel's and releases' in Source/README.md. The Rust tests
are now the one runner. readme.md describes the Rust version.

The server now closes gently after refusing a certificate (shutdown,
then reading until the client closes, 1 s at most): closing at once
reset the connection, which could beat TLS's alert to the client
(ConnectionLost instead of AuthRejected, 14 of 160 runs under load).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 00:42:19 +01:00
parent 68966a8031
commit 17ec69c03c
153 changed files with 183 additions and 33686 deletions
+8 -4
View File
@@ -118,14 +118,18 @@ otherwise started over (`DataMismatch`). A stop between its last part
and the check: started over at the next start.
**One server per node** stays the config's rule, as in the old version
(`OldSource/Design/ReplicationIssues.md` #1): a node pushing to two
servers that replicate makes the same ids with different messages,
undetected.
(`known-issues.md`): a node pushing to two servers that replicate makes
the same ids with different messages, undetected.
## A connection
1. **TLS:** the client's certificate must be the CA's, valid, not revoked,
with an identity (`certificates.md`).
with an identity (`certificates.md`). A refused one gets TLS's alert,
then a gentle close: the server shuts down and reads until the client
closes (1 s at most). Closing at once reset the connection (the
client's version bytes unread), which could beat the alert to the
client: `ConnectionLost` instead of `AuthRejected`, about 1 in 10 under
load on Windows.
2. **The versions:** each end sends its own; different ones, the
connection is dropped (the client says `VersionMismatch`).
3. **The roles:** none of the certificate's roles in the config, the