Http://social.msdn.microsoft.com/forums/en-US/wcf/thread/84551e45-19a2-4d0d-bcc0-516a4041943d/
Brief summary of binding timeout knobs...
Client Side:
- Sendtimeout is used to initialize the operationtimeout, which governs the whole interaction for sending a message (including processing a reply message in a request-reply case ). this timeout also applies when sending reply messages from a callbackcontract method.
- Opentimeout and closetimeout are used when opening and closing channels (when no explicit timeout value is passed ).
- Receivetimeout is not used.
Server side:
- Send, open, and close timeout same as on client (for callbacks ).
- Receivetimeout is used by serviceframework layer to initialize the session-idle timeout.
For your specific question, if you are using a session channel that requires network interaction at open () time, I wocould use opentimeout.
If not, you may have to use sendtimeout (but setting this to a small value wowould require all operation interactions to complete in a short period of time, which may be impractical if you are passing large messages or calling long-running request-reply operations ). another option is to cast the client channel to (icontextchannel) and set. operationtimeout to a small value for only the first method call, but then set it back to a normal value for subsequent cals.
note that in a number of cases, you may get feedback even if the timeout doesn't kick in. for example, using basichttpbinding (a simple non-session binding without RM), I find that if I invoke a client operation on a server that is not listening, I get an endpointnotfoundexception ("no connection cocould be made because the target machine actively refused it. ") in a second or two, regardless of the timeout values.