rpcgen on linux does not generate multithreaded svc code

ashish borkar <[email protected]> Wed, 17 Mar 2004 21:12:34 -0800 (PST)
Newsgroups gmane.linux.redhat.devel
Message-ID <[email protected]>
Hello,
     In linux the rpcgen command does not generate multithreaded code.
When I run the rpcgen command on a .x file with -M option (-M generate MT-safe code) in SUN it generates code whose main() has this line:
           int mode = RPC_SVC_MT_AUTO;
But when I run the rpcgen -M command in Linux the code generated is very different and does not have         int mode = RPC_SVC_MT_AUTO;
Due to this during stress test(i.e. multiple parallel requests) to  the rpc server on Linux the client gets many RPC failed error messages.This does not happen in SUN.
Also when I log the thread id in a log file it shows only a single thread which suggests that the svc code is not multithreaded.
What is the solution for this?
Thanks & Regards
Ashish
 

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

_______________________________________________
Redhat-devel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-devel-list