473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Net Remoting Timeout

Hi

I tried to get around the problem on an un-available remoting server bij
using the async methods (BeginInvoke) but noticed that this call is
blocking if the remote server is not available. the the client throws an
Exception after over 48 seconds, way to long .
The async method seems to be only async when the remote operation takes a
lot of time to execute.
Is there a way to shorten this(connection ) timeout ?

So far i solved by first pinging the remote first, but is no tight solution
since ping only gives me info if the remote pc exists on the network.

Johan

May 21 '06 #1
1 8613

"Sagaert Johan" <RE*************@hotmail.com> wrote in message
news:eB**************@TK2MSFTNGP04.phx.gbl...
Hi

I tried to get around the problem on an un-available remoting server bij
using the async methods (BeginInvoke) but noticed that this call is
blocking if the remote server is not available. the the client throws an
Exception after over 48 seconds, way to long .
The async method seems to be only async when the remote operation takes a
lot of time to execute.
Is there a way to shorten this(connection ) timeout ?

So far i solved by first pinging the remote first, but is no tight solution since ping only gives me info if the remote pc exists on the network.

Johan


Hi,
As far as I know, there is no way to control timeout in fw 1.1 (only on http
channel, not on tcp). Maybe in 2.0 there is an option, I'm not sure.

That timeout comes from TCP timeout on connect, which is typically around
minute. To make things worse, remoting uses lazy connect, which means you
can expect same timeout on every access of remote object (there is no built
in way to check for connection status). You may handle it yourself, but it's
pain in the ..., since you have to wrap every method.

Even worst situation can occur, if connection goes done after remote host
has received the request, but before response is sent. Your remote call will
hang infinitly (unless TCP keepalive timer kicks in, which is after few
hours I think by default).

The only think I could think of is to execute remote calls on separate
thread and abort that thread on configurable timeout (which is rather ugly,
should be avoided and lot of coding around).

You could try genuinne channels, they have better connection management (at
least they advertise it) + configurable timeouts. I have not tested it
though.

Regards,
Goran
May 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: harry | last post by:
Hi, I have a program that runs on multiple client pc's. Occasionally one or more of those pc's use VPN to connect to another corporate network. When using VPN they need to set proxy server in...
2
by: Dicky Cheng | last post by:
Hi, I am using .net remoting technology. I set up a .net remoting client and server in IIS. When the client calls the server, the server will run a long duration method (30-60seconds). I have a...
1
by: tonci.tomic | last post by:
I have windows service running on win2000 and client applications on local network connected to service via remoting. Service acts as interface to MSSQL 2000 database and it uses Microsoft Data...
1
by: Ahmet AKGUN | last post by:
Hi All; I have one server to which clients are connected to via TcpChannel. I start server on one host and establish a client connection from another host via tcpchannel. On client, using...
0
by: Steve Long | last post by:
Hello, I hope I'm asking this in the right group. I have an .exe application running on one of our servers that opens a remoting channel. A .aspx page communicates with it via remoting. On a...
11
by: Frank Rizzo | last post by:
Hello, My c# based windows service takes a while to dispose. I have to release bunch of resources all over the place and unfortunately it can take 20-40 seconds before I can cleanly exit. ...
2
by: Brad Quinn | last post by:
I have a WebApplication that uses tcp/binary remoting to communicate with remote objects hosted by a Windows Service on another machine. The WebApplication takes an XML post (~200K) and turns that...
1
by: =?Utf-8?B?S29zbW8=?= | last post by:
Hi, When the remoting server is not available (it is unreachanble/ closed/ non-existent), making a call on the remoted object takes 45 seconds, and this timeout value cannot be changed. MSDN...
3
Airslash
by: Airslash | last post by:
Hello, I've written my own TCPClient and TCPServer class components to handle traffic over the network between applications. When I test the components locally they work. In the local network...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.