Discussion:
Configure DCOM Timeout
(too old to reply)
Igor Lisbaron
2004-07-20 07:15:00 UTC
Permalink
Hello Everyone,

Is There any way to configure DCOM timeouts ?
My problem is: that when I call a CoCreateInstance in order to create the
remote DCOM
Server my program hangs inside the function for about 40-60 sec.

Thanks
Igor.
Brian Muth
2004-07-20 15:38:24 UTC
Permalink
Post by Igor Lisbaron
Is There any way to configure DCOM timeouts ?
No. If the remote DCOM server doesn't respond after 6 minutes, the proxy is
broken down, and an error is returned to the client. Unfortunately, this is
not configurable.
Post by Igor Lisbaron
My problem is: that when I call a CoCreateInstance in order to create the
remote DCOM
Server my program hangs inside the function for about 40-60 sec.
And why is that? Have you traced into it?

Brian
Igor Lisbaron
2004-07-20 16:54:53 UTC
Permalink
Post by Brian Muth
Post by Igor Lisbaron
Is There any way to configure DCOM timeouts ?
No. If the remote DCOM server doesn't respond after 6 minutes, the proxy is
broken down, and an error is returned to the client. Unfortunately, this is
not configurable.
Post by Igor Lisbaron
My problem is: that when I call a CoCreateInstance in order to create the
remote DCOM
Server my program hangs inside the function for about 40-60 sec.
And why is that? Have you traced into it?
Brian
My problem is: that when I call a CoCreateInstance in order to create the
remote DCOM
Server my program hangs inside the function for about 40-60 sec.


it happened in case of the network problem.

Igor
Brian Muth
2004-07-20 15:59:16 UTC
Permalink
Post by Igor Lisbaron
My problem is: that when I call a CoCreateInstance in order to create the
remote DCOM
Server my program hangs inside the function for about 40-60 sec.
it happened in case of the network problem.
Then this is expected behaviour.

Brian
Kim Gräsman
2004-07-21 07:14:04 UTC
Permalink
Hi Igor,
Post by Igor Lisbaron
Is There any way to configure DCOM timeouts ?
You can 'ping' the server ahead of time, using the technique illustrated by
the most excellent Shawn Van Ness at [1]

[1] http://www.windojitsu.com/code/atlxdcom.h.html
--
Best regards,
Kim Gräsman
Loading...