Why it's so slow when a wcf client connects to the service?

后端 未结 3 2032
北恋
北恋 2021-01-06 07:50

I met a performance issue when using the WCF service.

Here\'s the story:

  1. I wrote a self-hosted WCF service which is hosted by a console application

3条回答
  •  执笔经年
    2021-01-06 08:22

    We experiences the same, I figured out that it is the client that sleeps up to 14 seconds before actually opening the TCP connection.

    A simple call to

    binding.UseDefaultWebProxy = false;
    

    solved this.

提交回复
热议问题