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

Added the test lab guide, Stopped logging clients closing without close_notify

docs/lab.md: a lab of two servers replicating each other and three
clients, step by step: the certificates, the configs, what to try
(replication, attachments, queries, refusals, catching up, revocation,
Python, Docker), each command run as written.

The server took a client leaving without TLS's close_notify (every tool
command, the DLL, a killed process) for an error and logged it at INFO
on every connection: it's a normal close now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 01:21:29 +01:00
parent 5045019df4
commit 7709438aab
4 changed files with 215 additions and 1 deletions
@@ -71,6 +71,11 @@ async fn serve(shared: &Arc<Shared>, tcp: TcpStream, address: IpAddr) -> Result<
let bytes = match timeout(IDLE_TIMEOUT, frames.next()).await {
Err(_) => return Err(format!("{}: idle too long", peer.node)),
Ok(None) => return Ok(peer.node),
// Closed without TLS's close_notify: how the tools, the DLL and
// a killed process leave (a request cut short isn't run).
Ok(Some(Err(error))) if error.kind() == std::io::ErrorKind::UnexpectedEof => {
return Ok(peer.node);
}
Ok(Some(bytes)) => bytes.map_err(|error| format!("{}: {error}", peer.node))?,
};
let revoked = shared