WCF Timeouts - How and where to set?
I have a question about timeouts
Question 1: Where to set timeout values (on server/service side or client side)?
Question 2:
By definition,
The openTimeout as the name implies is the amount of time you're willing to wait when you open the connection to your WCF service. Similarly, the closeTimeout is the amount of time when you close the connection (dispose the client proxy) that you'll wait before an exception is thrown.
In this case if I set the open and close time out to 10 minutes (00:10:00) 开发者_如何学Cwhat will happen
A. when client tries to openconnection? Is service will slowly opens connection?
B. when client tries to closeconnection after making calll to a method? Is this going to close only after 10 min's?
Please help me to understand.
Thanks
The timeout is set on the side which is establishing the communication. In your example I believe it would be the client side.
A) The client will have 10 minutes to attempt to establish a connection before it throws an error.
B) The client will have 10 minutes to close the established connection before it throws an error.
精彩评论