]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't call xdrrec_skiprecord in the non-blocking case. If
authordfr <dfr@FreeBSD.org>
Sun, 30 Mar 2008 09:36:17 +0000 (09:36 +0000)
committerdfr <dfr@FreeBSD.org>
Sun, 30 Mar 2008 09:36:17 +0000 (09:36 +0000)
commit256e041f3b5d05f1d3ed6061912ba9f2734cfa0c
tree4a77f99dc90c51863075266ef06525a775bf52a7
parent6eacca7a0604581cc5603356fc594eac85e92add
Don't call xdrrec_skiprecord in the non-blocking case. If
__xdrrec_getrec has returned TRUE, then we have a complete request in
the buffer - calling xdrrec_skiprecord is not necessary. In particular,
if there is another record already buffered on the stream,
xdrrec_skiprecord will discard both this request and the next
one, causing the call to xdr_callmsg to fail and the stream to be
closed.

Sponsored by: Isilon Systems
lib/libc/rpc/svc_vc.c