WCF wsHttpBinding with http keepalive

后端 未结 2 2096
攒了一身酷
攒了一身酷 2020-12-05 20:05

I have a WCF client which uses a wsHttpBinding, I would like to enable http keep-alive.

I\'m hoping I can turn this on by just changing the client config... I\'ve fo

2条回答
  •  囚心锁ツ
    2020-12-05 20:47

    Keep alive is enabled by default on all HTTP based bindings and it is not possible to turn it off. If you want to turn it off you must create whole new custom binding and set keepAliveEnabled to false on httpTransport binding element.

提交回复
热议问题