title: ServiceStack encountered exception: The underlying connection was closed: The message length limit was exceeded
body: <p>I have a client-side application, consume web service from server. </p>
  
  <p>In one form of the application, it shows a list of tables, whose statuses are from the server, the form refreshing every 1 second. So it is acting like a real time page of all tables information.</p>
  
  <p>However, after leaving the form there for about 20, 30 minutes, it starts to throw "The underlying connection was closed: The message length limit was exceeded".</p>
  
  <p>I saw blog in <a href="http://code.logos.com/blog/2012/01/webexception-the-message-limit-length-was-exceeded.html">http://code.logos.com/blog/2012/01/webexception-the-message-limit-length-was-exceeded.html</a>, about setting the MaximumResponseHeadersLength, but I use ServiceStack, not sure where to set it, or how to solve this issue. Can anyone please help?</p>
  
  <pre><code>public IList&lt;Table&gt; GetAllTables()
  {
     return ServiceClient.Get&lt;EntitiesResponse&lt;Table&gt;&gt;("/tables").Entities;
  }
  </code></pre>