cultnet-rs: the window test drains with explicit acknowledgements
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cf884569ac
commit
619a9aa2a1
1 changed files with 2 additions and 4 deletions
|
|
@ -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()?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue