From 50920c0384189a6c635ca58c38bf7c942c0446b2 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Mon, 27 Sep 2010 23:50:23 +0100 Subject: [PATCH] rx: Limit window size to max acks The RX ack packet can only acknowledge 255 packets at once. In the current implementation, this limits our maximum window size to 255, as we can't acknowledge any packets we receive outside of that window size. Change-Id: If12eeb4a71cdf0bcd2a82f86b416e387543b7ea8 Reviewed-on: http://gerrit.openafs.org/2857 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/rx/rx_globals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rx/rx_globals.h b/src/rx/rx_globals.h index 1906686..3e691db 100644 --- a/src/rx/rx_globals.h +++ b/src/rx/rx_globals.h @@ -126,7 +126,7 @@ EXT int rx_BusyError GLOBALSINIT(-1); EXT int rx_minPeerTimeout GLOBALSINIT(2); /* in milliseconds */ EXT int rx_minWindow GLOBALSINIT(1); -EXT int rx_maxWindow GLOBALSINIT(65535); /* twind is u_short */ +EXT int rx_maxWindow GLOBALSINIT(RX_MAXACKS); /* must ack what we receive */ EXT int rx_initReceiveWindow GLOBALSINIT(16); /* how much to accept */ EXT int rx_maxReceiveWindow GLOBALSINIT(32); /* how much to accept */ EXT int rx_initSendWindow GLOBALSINIT(16); -- 1.9.4