[OpenAFS-devel] "Lost contact with file server" problems

Harald Barth haba@pdc.kth.se
Sat, 03 Sep 2005 09:11:46 +0200 (MEST)


----Next_Part(Sat_Sep__3_09_11_46_2005_085)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


> Would this patch go into 1.4?

I have now running several clients with differnt versions of 1.3.8x
with this patch included. Probably not as many as Roland but
everything from cluster nodes over ftp server to laptop. So far I did
not have any new problems on these. As an extra caution I added an "if
(conn->error)". I think this can (and should) go into 1.4 without
doing any harm.

Harald.

----Next_Part(Sat_Sep__3_09_11_46_2005_085)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="openafs-1.3.87-rx-set-mode-error.patch"

--- src/rx/rx.c.orig	2005-05-30 06:57:36.000000000 +0200
+++ src/rx/rx.c	2005-08-29 16:48:09.162915460 +0200
@@ -1147,6 +1147,12 @@
     /* Client is initially in send mode */
     call->state = RX_STATE_ACTIVE;
     call->mode = RX_MODE_SENDING;
+    if (conn->error)
+      call->error = conn->error;
+    if (call->error)
+      call->mode = RX_MODE_ERROR;
+    else
+      call->mode = RX_MODE_SENDING;
 
     /* remember start time for call in case we have hard dead time limit */
     call->queueTime = queueTime;

----Next_Part(Sat_Sep__3_09_11_46_2005_085)----