BennoDual
BennoDual

Reputation: 6279

maximum size of maxConnections for binding used with netTcp

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

Upvotes: 2

Views: 2174

Answers (3)

Tim
Tim

Reputation: 28530

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.

Upvotes: 0

Ramashankar
Ramashankar

Reputation: 1658

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.

Upvotes: 0

user1968030
user1968030

Reputation:

Simple:

 Int32.MaxValue =2,147,483,647

Get with this code:

   int maxConnections = binding.MaxConnections;

Upvotes: 1

Related Questions