cultnet-rs: the window test drains with explicit acknowledgements
All checks were successful
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Successful in 23m39s
Rust crates / cargo test, fmt, clippy (pull_request) Successful in 9m14s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-28 11:07:57 +01:00
commit 619a9aa2a1

View file

@ -1054,10 +1054,8 @@ fn a_send_queued_behind_a_full_window_returns_a_pending_receipt() -> Result<()>
if let Ok((received, from)) = server.recv_from(&mut buffer) {
let packet = decode_rudp_packet(&buffer[..received])?;
if packet.packet_type == CultNetRudpPacketType::Data {
let result = session.receive(&packet, 0)?;
if let Some(reply) = result.reply {
server.send_to(&encode_rudp_packet(&reply)?, from)?;
}
session.receive(&packet, 0)?;
server.send_to(&encode_rudp_packet(&session.create_ack())?, from)?;
}
}
client.poll_resends()?;