Date: Wed, 28 May 2003 02:13:09 -0700 (PDT) From: Martin Blapp <mbr@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/xdr xdr_rec.c Message-ID: <200305280913.h4S9D9Fk003807@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mbr 2003/05/28 02:13:09 PDT FreeBSD src repository Modified files: lib/libc/xdr xdr_rec.c Log: Fix amd(8) clients, if a FreeBSD mountd(8) server is used. Remove the special treatment of non-blocking mode in the "look ahead function" xdrrec_eof(). It currently assumes that the last read() in a row of several reads does not have zero lenght. If this is the case, svc_vc_stat() does return XPRT_MOREREQS, and the RPC-request aborts because there is no data to read anymore. To fix this, go back to the original version of the code for non-blocking mode until NetBSD comes up with another possible fix like this one in xdrrec_eof() if (rstrm->last_frag && rstrm->in_finger == rstrm->in_boundry) { return TRUE; } Return always FALSE in set_input_fragment() for non-blocking mode. Since this was not used in FreeBSD, I omitted it at the first time. Now we use this function and we should always return FALSE for it. Reviewed by: rwatson Approved by: re Revision Changes Path 1.20 +2 -9 src/lib/libc/xdr/xdr_rec.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305280913.h4S9D9Fk003807>