==> Regarding Re: [autofs] [RFC] rpc_ping and looong timeouts; Ian Kent <[EMAIL PROTECTED]> adds:
raven> On Tue, 8 Jun 2004, Jeff Moyer wrote: >> I guess we could come full circle on this issue, and try to solve it at >> the rpc layer. >> >> There are 2 issues here. First, for UDP, the portmapper lookup has a >> static timeout of 60 seconds, and that is not tunable (afaict). For >> TCP, it takes a long time to timout a connect call. I've already >> written code to address the TCP connect issue. >> >> As it happens, the UDP issue is not insurmountable. We can simply write >> code which queries the portmapper ourselves. Here is the excerpt from >> pmap_getport, edited to show only the UDP stuff: >> [snip] >> clntudp_bufcreate is simply clnt_create. In this case, we fill in address-> sin_port, so the clnt_create call will not do a pmap_lookup. >> Next we do a clnt_call, passing in a timeout. Note the 60 second >> timeout above. There, you're done. So, if we add the TCP case back >> into the code, we do the nonblocking connect, and then do that >> clnt_create with this socket. >> >> Ian, I think this is do-able, and not entirely disgusting. What's more >> is that we can get rid of the ping.c file. ;) I was never really happy >> with using a separate protocol anyway. The more I think about this, the >> more I like it. raven> I'm in. raven> Doing everything using the method as we are going to use for NFS is raven> definutely the way to go if we can. raven> What have we got to work with in terms of patches/code examples raven> (besides above). What would you like/have time to do and what can I raven> do. We don't want to duplicate efforts here. Okay, I sent you some mail with a non-blocking connect example (not posted here b/c of immaturity of code). Apart from that, I have nothing but what I've written above. >> Comments? If you like it, I'll set aside some time to implement it. raven> Jeff's hogging all the fun. raven> Seriously though, whatever you do is a be a big help. Thanks Jeff. Heh. I was merely trying to keep your load down to a sustainable volume. ;) I'm more than happy to review your patches! So, if you're totally into doing this, just let me know. I'm definitely quite busy enough with other things to share the fun! -Jeff _______________________________________________ autofs mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/autofs
