From: Derrick Brashear Date: Fri, 1 Oct 2010 03:57:11 +0000 (-0400) Subject: exempt instant timeouts from mtu discovery X-Git-Tag: openafs-devel-1_7_1~1485 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=0ecc90f3cd3f5a7c96b3689ab0c5f6a42edc3ed0 exempt instant timeouts from mtu discovery if we set lastReceiveTime to 0 to hint that no net, honor that here as "just time out" Change-Id: Ifb06fad782669649027841e3930ff94600b6c900 Reviewed-on: http://gerrit.openafs.org/2875 Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: BuildBot --- diff --git a/src/rx/rx.c b/src/rx/rx.c index 73a5d57..9302d42 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -5980,11 +5980,12 @@ rxi_CheckCall(struct rx_call *call) } return 0; mtuout: - if (conn->msgsizeRetryErr && cerror != RX_CALL_TIMEOUT) { + if (conn->msgsizeRetryErr && cerror != RX_CALL_TIMEOUT + && call->lastReceiveTime) { int oldMTU = conn->peer->ifMTU; /* if we thought we could send more, perhaps things got worse */ - if (call->conn->peer->maxPacketSize > conn->lastPacketSize) + if (conn->peer->maxPacketSize > conn->lastPacketSize) /* maxpacketsize will be cleared in rxi_SetPeerMtu */ newmtu = MAX(conn->peer->maxPacketSize-RX_IPUDP_SIZE, conn->lastPacketSize-(128+RX_IPUDP_SIZE));