Hi,

I am using TcpChannel and binary serialization to call remoted singleton
object on port 8090 (MarshalByRefObject without events). After 3500 -
4000 calls on *CLIENT* side I have the next error:

"Only one usage of each socket address (protocol/network address/por
t) is normally permitted

Server stack trace:
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
   at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String
machineAndPort)
   at
System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage
msg, ITransportHeaders r
equestHeaders, Stream requestStream)
   at ................... "

On the client side, netstat utility shows me many opened sockets in
state TIME_WAIT to server port 8090. Having regard to thay quantity it
seems that remoting infrastructure create new TCP connection and close
it on every remoting call. But MSDN says:
"The TcpChannel opens and caches as many connections as there are
threads making requests to another server at that moment. Socket
connections are closed on the client after 15-20 seconds of inactivity."

Can you help me?

--
Andrey Shvydky

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to