On Unix, the UDP buffer size has to be set before we open any sockets.
Otherwise, the default (64k) buffer size is used and never changed.
Move the calls to SetUdpBufSize in rxperf.c so that the -u command
line option actually has an effect.
Change-Id: Ic925faabca8264c0359693e97c2ab5b637902797
Reviewed-on: http://gerrit.openafs.org/2855
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
if (nostats)
rx_enable_stats = 0;
+ rx_SetUdpBufSize(udpbufsz);
+
ret = rx_Init(htons(port));
if (ret)
errx(1, "rx_Init failed");
if (minpeertimeout)
rx_SetMinPeerTimeout(minpeertimeout);
- rx_SetUdpBufSize(udpbufsz);
get_sec(1, &secureobj, &secureindex);
addr = str2addr(server);
+ rx_SetUdpBufSize(udpbufsz);
+
ret = rx_Init(0);
if (ret)
errx(1, "rx_Init failed");
if (minpeertimeout)
rx_SetMinPeerTimeout(minpeertimeout);
- rx_SetUdpBufSize(udpbufsz);
get_sec(0, &secureobj, &secureindex);