How to set keep alive interval for HTTP connection in WCF

后端 未结 6 1185
一向
一向 2020-12-03 03:45

Http transport channel in WCF uses persistent HTTP connections by default. How to control keep alive timeout for those connections? Default value is 100s. I found that value

6条回答
  •  被撕碎了的回忆
    2020-12-03 04:14

    Setting ServicePoint.MaxIdleTime should let you change the default 100 second idle timeout on the persistent HTTP connections.

    https://www.visualbasicplanet.info/windows-communication/configuring-http-connections.html

提交回复
热议问题