Last post Mar 30, 2010 09:01 AM by Darrel Miller
Mar 23, 2010 05:31 AM|johnnyrotten|LINK
I'm developing a WCF service. The server part is fine, but I have an issue on the client side when testing.
The state of the client stays 'Opened' no matter what I set the timeout values to (I have tried them all (SendTimeout, ReceiveTimeout, OpenTimeout, closeTimeOut).
I want to make a pool of clients, so I have to check what the state of the client is before using it.
So my question really is: what is the default timeout of a WCF client and where can I configure it?
Mar 23, 2010 06:39 AM|bcanonica|LINK
Mar 30, 2010 09:01 AM|Darrel Miller|LINK
Are you connecting to a server endpoint that is using WebHttpBinding? If so, you are using Http as an application protocol and you really should not have to worry about connection timeouts or pooling. Behind the scenes the Http client library will make
a connection if it needs it, or reuse an existing one if one does not exist. You should not have to deal with these issues at all as Http is a stateless protocol.