Re: Timeout for RPC call via TCP/IP

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Arkady Frenkel (arkadyf_at_hotmailxdotx.com)
Date: 07/27/04


Date: Tue, 27 Jul 2004 14:44:34 +0300

20c is default time for service to start , no connection to TCP/IP
Arkady

"Thore Karlsen [MVP DX]" <sid@6581.com> wrote in message
news:jgm2g05vdoohe797mk860p5mr8njk8tn4a@4ax.com...
> On Fri, 23 Jul 2004 09:07:23 +0200, "Frank Franzoni"
> <franzoni@gepasoft.de> wrote:
>
> >> Try RpcBindingSetOption with RPC_C_OPT_CALL_TIMEOUT. I've only tested
it
> >> briefly, but it seems to work. (Only on XP, though.)
>
> >Thanks for your quick answer.
> >I tried this option but it is behaving strangly. For the first rpc call
it
> >still takes 20 seconds until the call is
> >returned with an error.
> >When the network is interrupted after the first successful rpc call, all
> >following calls are returned within the time set in the option.
> >I suspect that this 20 seconds timeout does not come from the rpc runtime
> >but from tcp/ip.
> >Do you have an idea where to shorten this 20 seconds?
>
> It looks like the first RPC call is treated specially, and perhaps the
> alternative code path doesn't respect the timeout. I tried looking at
> the source code for the RPC implementation to see what was going on, but
> it's too complex to get an overview quickly.
>
> I'm not sure if there's a fix for this problem. I've searched for this
> kind of information before (timeouts, call cancellation, asynchronous
> calls), and there's precious little information about it apart from
> MSDN. I get the impression very few people are using these facilities.
> Or if they are, they must not be needing/seeking help online.
>
> The lack of control you have over what's going on behind the scenes with
> RPC is very frustrating, and if you expect to use it over faulty/slow
> connections I would recommend (based on my experiences) that you at
> least consider alternatives. Building a robust, responsive, and fault
> tolerant application around RPC is extremely hard.
>
> --
> Be seeing you.



Relevant Pages

  • Re: Timout control with RPC/HTTP
    ... specifies the minimum connection timeout used by the ... client and RPC Proxy, in seconds. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.exchange.admin)
  • Re: Timout control with RPC/HTTP
    ... please also check the RPC web site connection timeout settings ... Maybe the idle timeout settings depend on here. ...
    (microsoft.public.exchange.admin)
  • Re: Timout control with RPC/HTTP
    ... I understand that you want to modify the RPC ... over HTTP connection timeout value. ... the default timeout is 45 seconds. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.exchange.admin)
  • Re: Adding Simple TCPIP Services via Add or Remove Programs
    ... I have the Remote Procedure Call (RPC) Locator ... As far as DNS settings, ... Right click your connection | Repair ... A Description of the Repair Option on a Local Area Network or High-Speed ...
    (microsoft.public.windowsxp.general)
  • RPC Problem with WinXP SP2
    ... I have a Client application which is installed on a Windows XP SP 2 box. ... On start-up the application connects to the application server. ... own RPC Server, to which the application server is intended to ... This RPC connection is used to inform the client app. ...
    (microsoft.public.win32.programmer.networks)