Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: bernie@Name:    bsh3185 ()
Subject: Re: Disable RPC time-out
Date: 21 Dec 1994 18:27:57 GMT	[thread overview]
Message-ID: <3d9s3d$691@hpuerci.atl.hp.com> (raw)
In-Reply-To: D14r6B.7Gu@undergrad.math.uwaterloo.ca

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]
___________   __/   ___________________________________________________________


      reply	other threads:[~1994-12-21 18:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-12-19 20:34 Disable RPC time-out Yuh Ming YONG
1994-12-20  5:32 ` Rich Salz
1994-12-20 20:57   ` Spike White
1994-12-20 22:15   ` Yuh Ming YONG
1994-12-21 18:27     ` bernie [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox