Hi,
I'm working with .Net framework 2.0.50727, and I'm having problems
with timeouts on tcp client channels. According to this link:
http://support.microsoft.com/kb/923614 , the tcp timeout problem was
fixed in .Net 2.0. When I use the code below with a timeout of 1ms,
it takes about 168 seconds to time out. If I change the code to use
an http channel, it times out after a few seconds (seems to add a few
seconds of slop for object creation). For .Net 1.1, Microsoft
provided a hotfix, but I don't see anything indicating that a hotfix
is needed for .Net 2.0. Any idea what's going on here?
Dim t As IDictionary = New Hashtable()
t.Add("timeout", 1)
Dim clientChannel As New TcpClientChannel(t, Nothing)
ChannelServices.RegisterChannel(clientChannel)
Dim strURL As String = "tcp://SomeComputer:1237/MyRemoteObject.soap"
Dim obj As IMyRemoteObject =
Activator.GetObject(GetType(IMyRemoteObject), strURL)
thanks,
Keith