What 130 second timeout is killing my WCF streaming service call?

前端 未结 5 833
一向
一向 2020-12-08 16:22

Just recently I started to investigate a tricky problem with WCF streaming in which a CommunicationException is produced if the client waits for any longer than 130 seconds

5条回答
  •  时光说笑
    2020-12-08 16:56

    Try this, for me it solved the problem. The problem is that the underlying kernel http.sys has it's own timeout and it will break the connection.

    http://mmmreddy.wordpress.com/2013/07/11/wcf-use-of-http-transport-sharing-persistent-tcp-sessions/
    
    netsh http add timeout timeouttype=idleconnectiontimeout value=120
    

提交回复
热议问题