rxi_CallError @254
rx_GetLocalPeers @255
xdr_alloc @256
+ rx_GetMaxReceiveWindow @257
+ rx_GetMaxSendWindow @258
+ rx_SetMaxReceiveWindow @259
+ rx_SetMaxSendWindow @260
; for performance testing
rx_TSFPQGlobSize @2001 DATA
#include "rx_globals.h"
+void rx_SetMaxReceiveWindow(int packets)
+{
+ if (packets > rx_maxWindow)
+ packets = rx_maxWindow;
+
+ rx_maxReceiveWindow = packets;
+}
+
+int rx_GetMaxReceiveWindow(void)
+{
+ return rx_maxReceiveWindow;
+}
+
+void rx_SetMaxSendWindow(int packets)
+{
+ if (packets > rx_maxWindow)
+ packets = rx_maxWindow;
+
+ rx_maxSendWindow = packets;
+}
+
+int rx_GetMaxSendWindow(void)
+{
+ return rx_maxSendWindow;
+}
+
#ifdef AFS_NT40_ENV
void rx_SetRxDeadTime(int seconds)
* other packet. */
EXT int rx_minWindow GLOBALSINIT(1);
+EXT int rx_maxWindow GLOBALSINIT(65535); /* twind is u_short */
EXT int rx_initReceiveWindow GLOBALSINIT(16); /* how much to accept */
-EXT int rx_maxReceiveWindow GLOBALSINIT(64); /* how much to accept */
+EXT int rx_maxReceiveWindow GLOBALSINIT(128); /* how much to accept */
EXT int rx_initSendWindow GLOBALSINIT(16);
-EXT int rx_maxSendWindow GLOBALSINIT(64);
+EXT int rx_maxSendWindow GLOBALSINIT(128);
EXT int rx_nackThreshold GLOBALSINIT(3); /* Number NACKS to trigger congestion recovery */
EXT int rx_nDgramThreshold GLOBALSINIT(4); /* Number of packets before increasing
* packets per datagram */
send a soft ack, immediately followed by a hard ack. */
EXT int rxi_HardAckRate GLOBALSINIT(RX_FAST_ACK_RATE + 1);
-/* EXT int rx_maxWindow GLOBALSINIT(15); Temporary HACK: transmit/receive window */
-
/* If window sizes become very variable (in terms of #packets), be
* sure that the sender can get back a hard acks without having to wait for
* some kind of timer event first (like a keep-alive, for instance).
int maxSize);
/* rx_globals.c */
-
+extern int rx_GetMaxReceiveWindow(void);
+extern int rx_GetMaxSendWindow(void);
+extern void rx_SetMaxReceiveWindow(int packets);
+extern void rx_SetMaxSendWindow(int packets);
/* rx_kcommon.c */
struct socket;
lcstring;
AssertionFailed;
rx_GetLocalPeers;
+ rx_GetMaxReceiveWindow;
+ rx_GetMaxSendWindow;
+ rx_SetMaxReceiveWindow;
+ rx_SetMaxSendWindow;
local:
*;