From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9ba4,2d205d65f0dd902 X-Google-Attributes: gidf9ba4,public X-Google-Thread: f678f,2d205d65f0dd902 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-12-21 10:27:57 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!gatech!bloom-beacon.mit.edu!apollo.hp.com!lf.hp.com!hpscit.sc.hp.com!hpuerci.atl.hp.com!bernie From: bernie@Name: bsh3185 () Newsgroups: comp.unix.osf.misc,comp.soft-sys.dce Subject: Re: Disable RPC time-out Followup-To: comp.unix.osf.misc,comp.soft-sys.dce Date: 21 Dec 1994 18:27:57 GMT Organization: Hewlett-Packard Distribution: world Message-ID: <3d9s3d$691@hpuerci.atl.hp.com> References: <3d5q91$e1o@paperboy.osf.org> Reply-To: bernie@bsh3185.ssr.hp.com NNTP-Posting-Host: bsh3185.ssr.hp.com X-Newsreader: TIN [version 1.2 PL0.11] Xref: nntp.gmd.de comp.unix.osf.misc:2167 comp.soft-sys.dce:98 Yuh Ming YONG (ymyong@neumann.uwaterloo.ca) wrote: : In article <3d5q91$e1o@paperboy.osf.org>, rsalz@osf.org (Rich Salz) writes: : > What timeout? As long as client and server can send packets to each : > other, there is no limit on how long an RPC operation can take. : > /r$ : Time-out occurs when a client fails to bind to a server within : a time frame. When this time frame expires, the client re-attempt : to bind to the server. All this is done, transparently, in the : (client) stub code. I have experimented and observed the variability : of the time frame (i.e., it is not a constant value which may vary from : milliseconds to seconds to minutes to hours). Currently, my test RPC : programs use automatic binding method. Hi Yuh Ming, First of all, you will need to change your binding method since you have no control over this time-out (or other settings) when using automatic binding. In general, you will need to supply the RPC binding handle to change default values used by the RPC runtime. : I am wondering how I can control the effect of the variability. Thanks for : any information and suggestion. There is a call, rpc_mgmt_set_com_timeout(), which you can use to give the RPC runtime "advice" on the length of the timeout between client and server, which also depends on the type of network protocol that you are using. I am enclosing the call signature, but you should see the man pages or the DCE Application Development Reference for the values and meanings for "timeout". Note that these are relative timeout suggestions to the runtime. void rpc_mgmt_set_com_timeout( rpc_binding_handle_t binding, unsigned32 timeout, unsigned32 *status); : -Yuh Ming -- Best regards, Bernie Hirsch "No complex system is invented from scratch." (G. Booch) ________ _________________________________________________________________ / Bernard S. Hirsch / Financial Services Solutions Center ____ ___ / Hewlett-Packard Company / / / / 930 E. Campbell Rd., Richardson, TX 75081 __/ __/ _____/ (214)699-4197 Fax: (214)699-2528 | 699-6439 / http://bsh3185.ssr.hp.com/bernie.html [WWW] ___________ __/ ___________________________________________________________