Search code examples
c#wcfwcf-binding

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?


Solution

  • 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.