HighTechTalks DotNet Forums  

timeout for tcp channel

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss timeout for tcp channel in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Keith Langer
 
Posts: n/a

Default timeout for tcp channel - 09-06-2007 , 09:48 AM






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


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.