title: Does System.Net.Http.HttpClient suffer from HttpWebRequest.AllowWriteStreamBuffering?
body: <p>I've been trying to use <code>System.Net.Http.HttpClient</code> to POST a larger file (+1GB) but it throws a <code>SystemOutOfMemory</code> exception:</p>
  
  <pre><code>at System.Net.ScatterGatherBuffers.AllocateMemoryChunk(Int32 newSize)
  at System.Net.ScatterGatherBuffers..ctor(Int64 totalSize)
  at System.Net.ConnectStream.EnableWriteBuffering()
  at System.Net.HttpWebRequest.SetRequestSubmitDone(ConnectStream submitStream)
  at System.Net.Connection.CompleteStartRequest(Boolean onSubmitThread, HttpWebRequest request, TriState needReConnect)
  at System.Net.Connection.SubmitRequest(HttpWebRequest request, Boolean forcedsubmit)
  at System.Net.ServicePoint.SubmitRequest(HttpWebRequest request, String connName)
  at System.Net.HttpWebRequest.SubmitRequest(ServicePoint servicePoint)
  at System.Net.HttpWebRequest.BeginGetRequestStream(AsyncCallback callback, Object state)
  at System.Net.Http.HttpClientHandler.StartGettingRequestStream(RequestState state)
  at System.Net.Http.HttpClientHandler.PrepareAndStartContentUpload(RequestState state)
  </code></pre>
  
  <p>Apparently, a similar problem occurs for <code>HttpWebRequest</code> as discussed here:  <a href="http://support.microsoft.com/kb/908573" rel="noreferrer">http://support.microsoft.com/kb/908573</a>.</p>
  
  <p>Is there any way to set <code>AllowWriteStreamBuffering</code> of the underlying web request to <code>false</code>? I can't find any.</p>
  
  <p>Cheers,</p>