WCF Client only creates 2 http connection - due to this Long running calls causes WCF client to block on subsequent request.

Rindani, Kuldip 1 Reputation point

We have a WCF Client (its a windows service) which connects to WCF server (serving multiples clients) to make a request and some time query can run longer (30-5 minutes) which is causing subsequent request to block.

During investigation (wireshark) - we are seeing WCF client is only creating max 2 http connection which causes all subsequent request to block on this long running queries.

We dont have any connection throttling code to limit http connection.

Microsoft Technologies based on the .NET software framework.
3,337 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Kuldip Rindani 1 Reputation point

    Thank TheobaldDu, setting max connection attribute in config file helped and I can see multiple connection going out now.

    <add address = "*" maxconnection = "10" />

    or this could also be achieved by code changes:
    System.Net.ServicePointManager.DefaultConnectionLimit = 10;

    URL for reference:



    0 comments No comments