This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
possible svc_udp bug in Sun RPC code?
- To: libc-alpha at sources dot redhat dot com
- Subject: possible svc_udp bug in Sun RPC code?
- From: Andy Tai <lichengtai at yahoo dot com>
- Date: Mon, 9 Jul 2001 22:34:33 -0700 (PDT)
- Cc: atai at atai dot org
- Reply-To: atai at atai dot org
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/