title: Is there any way to read from one Netty channel only as fast as you can write to another?
body: <p>We're experiencing an issue in LittleProxy where OutOfMemoryErrors are popping up when reading from a fast server LittleProxy is proxying access to and writing to a slow client configured to use the proxy. The problem is that the data coming in from the server buffers up in memory faster than we can write it to the client. LittleProxy is just a simple HTTP proxy built atop Netty.</p>
  
  <p>Is there any easy way to throttle the read from the remote server to be exactly the same speed as the client is able to read it?</p>
  
  <p>See:</p>
  
  <p><a href="https://github.com/adamfisk/LittleProxy/issues/53" rel="nofollow">https://github.com/adamfisk/LittleProxy/issues/53</a></p>
  
  <p>and</p>
  
  <p><a href="https://github.com/adamfisk/LittleProxy" rel="nofollow">https://github.com/adamfisk/LittleProxy</a></p>