rc@wyse.wyse.com (07/13/89)
I have an application which needs to know whether Yellow Pages is up and running. I have a program which makes a RPC call to determine if it can talk to the YPBIND on the server. The only snag though is that it takes about 15 seconds to time out before reporting that YP is not configured. Of course if YP is configured, the answer is reported immediately. Can someone please suggest an alternate solution ? The bottom line is that I don't want the user to wait that long to get an answer. Rather than cluttering up the net, please let me know if you want a copy of the program that determines this. Thanks in advance -rc Ran-Chi Huang BELL: (408) 473-2596 Wyse Technology M/S 302 DOMAIN: rc@wyse.com OR postmaster@wyse.com 3471, N. First Street UUCP: ...!{uunet,decwrl}!wyse!rc San Jose, CA 95134 ALTERNATE: rc@caf.mit.edu
rbj@dsys.ncsl.nist.gov (Root Boy Jim) (07/25/89)
? From: rc@wyse.wyse.com ? I have an application which needs to know whether Yellow Pages is up ? and running. I have a program which makes a RPC call to determine if ? it can talk to the YPBIND on the server. The only snag though is that ? it takes about 15 seconds to time out before reporting that YP is ? not configured. Of course if YP is configured, the answer is reported ? immediately. ? Can someone please suggest an alternate solution ? The bottom line is that ? I don't want the user to wait that long to get an answer. Time the RPC call with an alarm. If the RPC call is not interruptable, you may have to fork a child process. ? Thanks in advance ? -rc ? Ran-Chi Huang BELL: (408) 473-2596 ? Wyse Technology M/S 302 DOMAIN: rc@wyse.com OR postmaster@wyse.com ? 3471, N. First Street UUCP: ...!{uunet,decwrl}!wyse!rc ? San Jose, CA 95134 ALTERNATE: rc@caf.mit.edu Root Boy Jim Have GNU, Will Travel.