Question

I am searching for the max. limit for the property maxConnections for a binding used with netTcpBinding?

Était-ce utile?

La solution 2

From MSDN: NetTcpBinding.MaxConnections Property, the type is Int32, so the maximum value will be 2,147,483,647, as others have said.

The default value is 10.

Realistically, I wouldn't expect a maximum setting in this property to be used in a service or client, but if you need something more than 10 you have plenty of room.

Autres conseils

Simple:

 Int32.MaxValue =2,147,483,647

Get with this code:

   int maxConnections = binding.MaxConnections;

I am not sure whether this answer your question, i have got something similar to your question

see here High MaxConnections value and Out of Memory Exception

"MaxConnections has to do with the total number of open connections on the service, regardless if the service is executing anything for the connection."

the MAX value differs from system to system depending upon it's capacity and maybe OS as well.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top