سؤال

I can see in MSDN page that NetTcpBinding in new .NET 4.5 uses TCP connection pooling based on the service’s host DNS name and the port number the service is listening on. Does it true for WebHttpBinding as well? I could not find answer to this question.

هل كانت مفيدة؟

المحلول

It seems, that connection pooling is allowed for tcp (TcpConnectionPoolSettings) and Named pipes (NamedPipeConnectionPoolSettings) only.

See also this msdn post

نصائح أخرى

Connection pooling is done baased on the ServicePointManager/ServicePoint classes and so ServicePointManager MaxServicePoints/MaxServicePointIdleTime are used to control the caching.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top