possible svc_udp bug in Sun RPC code?
Andy Tai
lichengtai@yahoo.com
Mon Jul 9 22:34:00 GMT 2001
Hi, this is a question about the function
svcudp_recv() in svc_udp.c, line 284
in the sunrpc code. There the function returns TRUE,
after finding that the incoming packet already exists
in the cache of the UDP RPC implementation. Shouldn't
it return
FALSE, that it just found a reply from the cache, sent
the cached result back,
so the calling function in svc.c does not need to
process the incoming RPC packet again? I find the
sunrpc code in FreeBSD's C
library also returns TRUE in the same place. This
seems a bug in the original Sun
code, but I am not sure. Maybe the RPC experts can
enlighten me.
If this is a bug, a very small patch can be submitted
to fix the bug.
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
More information about the Libc-alpha
mailing list