Server-side Tcp Connection pooling

An internal customer was asking how to control connection pooling on the server side of WCF for the Tcp Transport.  There are two knobs to control this behavior.  The first controls how long a connection can stay open while waiting to be reused and can be set through the IdleTimeout property on the TcpConnectionPoolSettings object, which is exposed from the TcpTransportBindingElement.  The second controls how many connections can live in the server’s connection pool waiting for reuse and can be set through either the MaxOutboundConnectionsPerEndpoint property on the TcpConnectionPoolSettings or through the MaxConnections property on the NetTcpBinding.

Comments (0)

Skip to main content