From 0ecc90f3cd3f5a7c96b3689ab0c5f6a42edc3ed0 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 30 Sep 2010 23:57:11 -0400 Subject: [PATCH] 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 --- src/rx/rx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rx/rx.c b/src/rx/rx.c index 73a5d5779..9302d423e 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)); -- 2.39.5