开发者

wcf slow connection and number of connections in the pool

开发者 https://www.devze.com 2023-01-15 17:24 出处:网络
I have a wcf client. The client calls a function and then closes. 开发者_C百科If I use netstat there is only one connection.

I have a wcf client. The client calls a function and then closes.

开发者_C百科If I use netstat there is only one connection.

I made an experiment. In the server function I put Thread.sleep(10000).

Then again I started the client.

With netstat I found out that there are 5 connections.

Why when the response is slow the client opens more connections than one ?

Regards


Nettcp connection are pooled and if you had your process running for a while then you see that these would be reused and a new one would be created if an existing one is being used and returned to the pool. So your usage will determine how the pool functions.

http://kennyw.com/work/indigo/173

0

精彩评论

暂无评论...
验证码 换一张
取 消