5 connections probably come from the server β you can determine the number of maximum open sessions, maximum simultaneous calls, and maximum server instances using the serviceThrottling server serviceThrottling .
At the same time, this will allow you to increase the number of simultaneous open sessions, I would recommend correctly clearing after myself - even if you did not have to in the old days .....
I would suggest including the use of your client proxy in the using statement, for example:
using(ClientProxy proxy = new ClientProxy()) {
Update: as the commentator rightly noted, this has a share of problems, as the client may throw an exception when deleting. Thus, this may not work so well - or you need to wrap a try...catch around it to handle cases where closing the client proxy causes a problem.
See Avoid problems using instructions.
Thus, the client proxy is automatically closed and deleted when the block usage area ends, and your channel from the client to the server is freed, and the server is ready to accept another call from another client.
In addition, with wsHttpContextBinding you should check if you really need sessions that are enabled by default - the recommended best practice will be to use call requests on the server, for example. each caller creates a new server object. Sessions are a lot of new problems and potential errors, so I would try to use them only when I really need (and benefit from them) - otherwise disconnect sessions.
Mark
source share