In WCF, does a timeout fault the channel?

荒凉一梦 提交于 2019-12-12 13:12:00

问题


In WCF, does a timeout on a request-response operation fault the channel at the client's end?

If a server times out when sending a response, is the channel faulted at the server's end?


回答1:


Yes, a timeout will fault the channel - and there's always only one channel linking a client and a server - the server doesn't have a channel of its own...

You basically have:

+-----------+                       +-----------+
|           |_______________________|           |
|  Client   |     The Channel       |  Server   |
|           |-----------------------|           |
+-----------+                       +-----------+

There's really only one channel which connects the two bits. As for timeouts - if both ends define a different value for the same timeout, the smaller value will "win" and become relevant - the higher value (on the other end) isn't taken into account.




回答2:


Correct, the timeout will fault the channel. You can set the max timeout time on both the client and the server side.



来源:https://stackoverflow.com/questions/2646804/in-wcf-does-a-timeout-fault-the-channel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!