Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In your binding configuration, there are four timeout values you can tweak:</p> <pre><code>&lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="IncreasedTimeout" sendTimeout="00:25:00"&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; </code></pre> <p>The most important is the <code>sendTimeout</code>, which says how long the client will wait for a response from your WCF service. You can specify <code>hours:minutes:seconds</code> in your settings - in my sample, I set the timeout to 25 minutes.</p> <p>The <code>openTimeout</code> 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 <code>closeTimeout</code> is the amount of time when you close the connection (dispose the client proxy) that you'll wait before an exception is thrown.</p> <p>The <code>receiveTimeout</code> is a bit like a mirror for the <code>sendTimeout</code> - while the send timeout is the amount of time you'll wait for a response from the server, the <code>receiveTimeout</code> is the amount of time you'll give you client to receive and process the response from the server.</p> <p>In case you're send back and forth "normal" messages, both can be pretty short - especially the <code>receiveTimeout</code>, since receiving a SOAP message, decrypting, checking and deserializing it should take almost no time. The story is different with streaming - in that case, you might need more time on the client to actually complete the "download" of the stream you get back from the server.</p> <p>There's also openTimeout, receiveTimeout, and closeTimeout. The <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.binding_members.aspx" rel="noreferrer">MSDN docs on binding</a> gives you more information on what these are for.</p> <p>To get a serious grip on all the intricasies of WCF, I would strongly recommend you purchase the "<a href="https://rads.stackoverflow.com/amzn/click/0596101627" rel="noreferrer">Learning WCF</a>" book by Michele Leroux Bustamante:</p> <p><a href="http://ecx.images-amazon.com/images/I/51GNuqUJq%2BL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU01_.jpg" rel="noreferrer">Learning WCF http://ecx.images-amazon.com/images/I/51GNuqUJq%2BL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU01_.jpg</a></p> <p>and you also spend some time watching her 15-part "<a href="http://www.dasblonde.net/WCFWebcastSeries.aspx" rel="noreferrer">WCF Top to Bottom</a>" screencast series - highly recommended!</p> <p>For more advanced topics I recommend that you check out Juwal Lowy's <a href="https://rads.stackoverflow.com/amzn/click/0596521308" rel="noreferrer">Programming WCF</a> Services book.</p> <p><a href="http://ecx.images-amazon.com/images/I/41odWcLoGAL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU01_.jpg" rel="noreferrer">Programming WCF http://ecx.images-amazon.com/images/I/41odWcLoGAL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU01_.jpg</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload