This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

possible svc_udp bug in Sun RPC code?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]