|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Shmuel Vagner (Shmuel_vagner
RADWIN.COM)Date: Tue Jan 15 2002 - 07:51:43 CST
A follow-up to the below questions:
How do I control timeouts for DCOM calls?
Shmuel
-----Original Message-----
From: Peter Foreman [mailto:peter_foreman
YAHOO.COM]
Sent: Friday, January 11, 2002 2:21 PM
To: DCOM
DISCUSS.MICROSOFT.COM
Subject: Re: Timeout in DCOM
REPOST: Still looking for an answer to this:
On Wed, 9 Jan 2002 01:47:30 -0800, Peter Foreman <peter_foreman
YAHOO.COM>
wrote:
>I'm trying to use DCOM to create a reasonably fault-tolerant system. The
case I'm looking at here
>is when a remote server is disconnected from the network during a DCOM
method call.
>
>System under test:
>Remote machine - W2K Advanced Server
>Client machine - W2K Professional
>Debug versions of code used with sysinternals debug viewer used to see
trace messages.
>DCOM is over TCP/IP.
>
>Part A)
>I create an ATL object in the MTA, in an exe server, on a remote machine,
with a method:
>SlowMethod()
>{
> ATLTRACE( "HERE 1\n" );
> Sleep( 6000 );
> ATLTRACE( "HERE 2\n" );
> return S_OK;
>}
>
>I call the method from the client box and disconnect the network cable
from the server (not
>client), whilst it is in the Sleep() statement, it takes about 2 hours for
the client to be
>notified that the server has disappeared.
>
>What is going on in this case? I can't find any detailed information on
the algorithms used to
>determine the connection to the server has been lost. Can anyone give me
pointers?
>
>Part B)
>I create a method
>Ping()
>{
> ATLTRACE( "PING\n" );
> return S_OK;
>}
>either on the same object or another in the same remote server process. I
then create a thread on
>the client machine to call this every 1 second. I start this thread then
call the SlowMethod
>above, again pulling the network cable mid-invocation of SlowMethod.
>
>Now I get the SlowMethod call returning in about 1 minute and the Ping
call 30 seconds after that.
>(Presumably I'm not catching Ping whilst it is executing on the server).
>
>Again, what is happening? Where can I get more information on the
algorithm?
>
>Also can I rely on this behaviour in current and future versions of
Windows?
>
>Peter
>
>__________________________________________________
>Do You Yahoo!?
>Send FREE video emails in Yahoo! Mail!
>http://promo.yahoo.com/videomail/
>
>----------------------------------------------------------------
>Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
>contains important info. Save time, search the archives at
>http://discuss.microsoft.com/archives/index.html .
>To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]