How to set keep alive interval for HTTP connection in WCF

后端 未结 6 1180
一向
一向 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:01

    From this answer, and what I can read here, it looks like you want to create a custom http binding, and set the inactivityTimeout attribute.

    From the MSDN article:

    
      
        
          
          
          
        
      
    
    

提交回复
热议问题